/**
 * Reseller Portal Styles
 */

.mfs-reseller-portal {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Login Card */
.mfs-reseller-login-card {
    max-width: 400px;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.mfs-reseller-logo-header {
    text-align: center;
    margin-bottom: 30px;
}

.mfs-reseller-logo {
    max-width: 200px;
    height: auto;
}

.mfs-reseller-login-card h2 {
    text-align: center;
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #1a365d;
}

.mfs-reseller-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.mfs-reseller-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #666;
}

.mfs-reseller-footer a {
    color: #2563eb;
    text-decoration: none;
}

/* Form Styles */
.mfs-form-group {
    margin-bottom: 20px;
}

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

.mfs-form-group input,
.mfs-form-group select,
.mfs-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.mfs-form-group input:focus,
.mfs-form-group select:focus,
.mfs-form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.mfs-form-group small {
    display: block;
    margin-top: 6px;
    color: #888;
    font-size: 12px;
}

/* Buttons */
.mfs-button {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.mfs-button-primary {
    background: #2563eb;
    color: #fff;
    width: 100%;
}

.mfs-button-primary:hover {
    background: #1d4ed8;
}

.mfs-button-primary:disabled {
    background: #93c5fd;
    cursor: not-allowed;
}

.mfs-button-secondary {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.mfs-button-secondary:hover {
    background: #e2e8f0;
}

/* Messages */
.mfs-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 16px;
    font-size: 14px;
}

.mfs-message-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.mfs-message-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Dashboard Header */
.mfs-reseller-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 24px;
}

.mfs-reseller-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mfs-reseller-logo-small {
    height: 40px;
    width: auto;
}

.mfs-reseller-welcome {
    font-size: 16px;
    color: #ffffff;
}

.mfs-reseller-welcome span {
    font-weight: 600;
    color: #ffffff;
}

/* Tabs */
.mfs-reseller-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0;
}

.mfs-reseller-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    position: relative;
    margin-bottom: -2px;
}

.mfs-reseller-tab:hover {
    color: #374151;
}

.mfs-reseller-tab.active {
    color: #2563eb;
    border-bottom: 2px solid #2563eb;
}

.mfs-reseller-tab-content {
    display: none;
}

.mfs-reseller-tab-content.active {
    display: block;
}

/* Cards */
.mfs-reseller-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 24px;
}

.mfs-reseller-card h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #1f2937;
}

/* Limits Info */
.mfs-reseller-limits-info {
    display: flex;
    gap: 24px;
    padding: 12px 16px;
    background: #f0f9ff;
    border-radius: 6px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #0369a1;
}

/* Notice */
.mfs-reseller-notice {
    margin-top: 20px;
    padding: 12px 16px;
    background: #fef3c7;
    border-radius: 6px;
    font-size: 13px;
    color: #92400e;
}

/* Tables */
.mfs-reseller-table {
    width: 100%;
    border-collapse: collapse;
}

.mfs-reseller-table th,
.mfs-reseller-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.mfs-reseller-table th {
    font-weight: 600;
    color: #374151;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #f9fafb;
}

.mfs-reseller-table td {
    font-size: 14px;
    color: #4b5563;
}

.mfs-reseller-table code {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 4px;
    color: #000;
}

.mfs-codes-table .mfs-code-value {
    font-size: 11px;
}

/* Status Badges */
.mfs-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.mfs-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.mfs-status-approved {
    background: #d1fae5;
    color: #065f46;
}

.mfs-status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.mfs-status-available {
    background: #dbeafe;
    color: #1e40af;
}

.mfs-status-redeemed {
    background: #d1fae5;
    color: #065f46;
}

.mfs-status-revoked {
    background: #f3f4f6;
    color: #6b7280;
}

/* Codes Controls */
.mfs-codes-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.mfs-codes-controls select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    min-width: 200px;
}

/* Codes Stats */
.mfs-codes-stats {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 6px;
}

.mfs-stat {
    font-size: 14px;
    color: #6b7280;
}

.mfs-stat strong {
    color: #374151;
}

.mfs-stat-available strong {
    color: #1e40af;
}

.mfs-stat-redeemed strong {
    color: #065f46;
}

/* Loading & Empty States */
.mfs-loading {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
}

.mfs-empty {
    text-align: center;
    padding: 40px;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .mfs-reseller-portal {
        padding: 16px;
    }

    .mfs-reseller-login-card {
        padding: 24px;
        margin: 20px auto;
    }

    .mfs-reseller-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .mfs-reseller-tabs {
        overflow-x: auto;
    }

    .mfs-reseller-tab {
        padding: 10px 16px;
        white-space: nowrap;
    }

    .mfs-reseller-limits-info {
        flex-direction: column;
        gap: 8px;
    }

    .mfs-codes-controls {
        flex-direction: column;
    }

    .mfs-reseller-table {
        font-size: 12px;
    }

    .mfs-reseller-table th,
    .mfs-reseller-table td {
        padding: 8px;
    }
}
