/**
 * VD License Manager - Public Styles
 *
 * @package    VD_License_Manager
 * @subpackage VD_License_Manager/public/css
 * @since      1.0.0
 */

/* =============================================================================
   License Portal Styles (Future Implementation)
   ============================================================================= */

.vd-license-portal {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.vd-portal-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #0073aa;
}

.vd-portal-title {
    color: #0073aa;
    font-size: 28px;
    margin-bottom: 10px;
}

.vd-portal-subtitle {
    color: #666;
    font-size: 16px;
}

/* =============================================================================
   License Input Form
   ============================================================================= */

.vd-license-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.vd-form-group {
    margin-bottom: 20px;
}

.vd-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.vd-form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.vd-form-input:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.vd-form-button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
}

.vd-form-button:hover {
    background: #005177;
}

.vd-form-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* =============================================================================
   License Information Display
   ============================================================================= */

.vd-license-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.vd-license-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vd-license-status.active {
    background: #d4edda;
    color: #155724;
}

.vd-license-status.expired {
    background: #f8d7da;
    color: #721c24;
}

.vd-license-status.suspended {
    background: #fff3cd;
    color: #856404;
}

/* =============================================================================
   Account Credentials Display
   ============================================================================= */

.vd-credentials {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.vd-credentials-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.vd-credentials-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.vd-copy-all-btn {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.vd-credential-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
}

.vd-credential-item:last-child {
    border-bottom: none;
}

.vd-credential-label {
    font-weight: 600;
    color: #555;
    min-width: 120px;
}

.vd-credential-value {
    flex: 1;
    margin: 0 15px;
    font-family: 'Courier New', Courier, monospace;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 3px;
    word-break: break-all;
}

.vd-copy-btn {
    background: #007cba;
    color: #fff;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    cursor: pointer;
    min-width: 50px;
}

.vd-copy-btn:hover {
    background: #005a87;
}

/* =============================================================================
   Device Information
   ============================================================================= */

.vd-device-info {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 6px;
    padding: 15px;
    margin-top: 20px;
}

.vd-device-info h4 {
    margin-top: 0;
    color: #0073aa;
}

.vd-device-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.vd-device-item {
    padding: 8px 0;
    border-bottom: 1px solid #cce7ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vd-device-item:last-child {
    border-bottom: none;
}

.vd-device-name {
    font-weight: 600;
}

.vd-device-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #d4edda;
    color: #155724;
}

/* =============================================================================
   Messages and Alerts
   ============================================================================= */

.vd-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.vd-message.success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.vd-message.error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.vd-message.warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.vd-message.info {
    background: #cce7ff;
    border-color: #007cba;
    color: #004085;
}

/* =============================================================================
   Loading States
   ============================================================================= */

.vd-loading {
    display: inline-flex;
    align-items: center;
    color: #666;
}

.vd-loading::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: vd-spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes vd-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =============================================================================
   Responsive Design
   ============================================================================= */

@media (max-width: 768px) {
    .vd-license-portal {
        margin: 10px;
        padding: 15px;
    }

    .vd-license-form {
        padding: 20px;
    }

    .vd-portal-title {
        font-size: 24px;
    }

    .vd-credential-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .vd-credential-value {
        margin: 5px 0;
        width: 100%;
    }

    .vd-copy-btn {
        align-self: flex-end;
    }
}

/* =============================================================================
   Accessibility
   ============================================================================= */

.vd-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.vd-form-input:focus,
.vd-form-button:focus,
.vd-copy-btn:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* =============================================================================
   Print Styles
   ============================================================================= */

@media print {
    .vd-copy-btn,
    .vd-copy-all-btn,
    .vd-form-button {
        display: none;
    }

    .vd-license-portal {
        margin: 0;
        padding: 0;
    }

    .vd-credentials,
    .vd-license-info {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}