.fm-client-login {
    max-width: 500px;
    margin: 40px auto;
    padding: 20px;
}

.fm-login-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.fm-login-container h2 {
    margin-top: 0;
    text-align: center;
    color: #333;
}

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

.fm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.fm-form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

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

.fm-form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 13px;
}

.fm-button {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
}

.fm-button-primary {
    background: #0073aa;
    color: #fff;
    width: 100%;
}

.fm-button-primary:hover {
    background: #005a87;
}

.fm-button-secondary {
    background: #f0f0f0;
    color: #333;
}

.fm-button-secondary:hover {
    background: #e0e0e0;
}

#fm-login-message {
    margin-top: 20px;
    text-align: center;
}

.fm-loading,
.fm-success,
.fm-error {
    padding: 12px;
    border-radius: 4px;
    margin: 10px 0;
}

.fm-loading {
    background: #d1ecf1;
    color: #0c5460;
}

.fm-success {
    background: #d4edda;
    color: #155724;
}

.fm-error {
    background: #f8d7da;
    color: #721c24;
}

.fm-client-portal {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.fm-portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #0073aa;
}

.fm-portal-header h2 {
    margin: 0;
    color: #333;
}

.fm-portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.fm-portal-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.fm-portal-section h3 {
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #0073aa;
    color: #333;
}

.fm-info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.fm-info-item:last-child {
    border-bottom: none;
}

.fm-info-item strong {
    color: #666;
}

.fm-subscription-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-top: 15px;
}

.fm-subscription-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.fm-subscription-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fm-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fm-detail-label {
    opacity: 0.9;
}

.fm-detail-value {
    font-weight: bold;
}

.fm-entries-count {
    font-size: 28px;
}

.fm-no-subscription {
    text-align: center;
    padding: 30px;
    color: #666;
}

.fm-qr-display {
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 15px 0;
}

.fm-qr-code-wrapper {
    display: inline-block;
}

.fm-qr-code-image {
    border: 3px solid #0073aa;
    border-radius: 8px;
    padding: 15px;
    background: #fff;
}

.fm-qr-actions {
    text-align: center;
    margin: 15px 0;
}

.fm-qr-info {
    text-align: center;
    color: #666;
    margin-top: 10px;
}

.fm-checkins-history {
    grid-column: 1 / -1;
}

.fm-checkins-list {
    overflow-x: auto;
}

.fm-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.fm-table thead {
    background: #f5f5f5;
}

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

.fm-table th {
    font-weight: bold;
    color: #333;
}

.fm-table tbody tr:hover {
    background: #f9f9f9;
}

.fm-no-data {
    text-align: center;
    padding: 30px;
    color: #666;
}

.fm-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

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

.fm-status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.fm-status-expired {
    background: #fff3cd;
    color: #856404;
}

.fm-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.fm-badge-qr {
    background: #d1ecf1;
    color: #0c5460;
}

.fm-badge-manual {
    background: #fff3cd;
    color: #856404;
}

@media (max-width: 768px) {
    .fm-portal-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .fm-portal-grid {
        grid-template-columns: 1fr;
    }
    
    .fm-info-item {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
    
    .fm-table {
        font-size: 14px;
    }
    
    .fm-table th,
    .fm-table td {
        padding: 8px;
    }
}
