/* CSS Variables - Nautical Theme */
:root {
    --navy: #1e3a5f;
    --navy-dark: #152a45;
    --navy-light: #2d4a6f;
    --sky-blue: #5b9bd5;
    --ocean: #3498db;
    --sand: #f5f1eb;
    --white: #ffffff;
    --rope: #c9a962;
    --red-flag: #c0392b;

    --primary-color: var(--navy);
    --primary-hover: var(--navy-dark);
    --accent-color: var(--sky-blue);
    --background: #f7f9fc;
    --surface: var(--white);
    --text-primary: #1a2b3c;
    --text-secondary: #5a6b7c;
    --text-light: #8a9bac;
    --border-color: #e1e8ef;
    --shadow-sm: 0 1px 2px rgba(30, 58, 95, 0.08);
    --shadow: 0 2px 8px rgba(30, 58, 95, 0.1);
    --shadow-lg: 0 4px 16px rgba(30, 58, 95, 0.12);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header - Navy with subtle wave */
header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 1.25rem 2rem;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 100;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--rope) 0%, var(--sky-blue) 50%, var(--rope) 100%);
}

header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

header h1::before {
    content: '⛵';
    font-size: 1.25rem;
}

nav {
    display: flex;
    gap: 0.5rem;
}

.nav-btn {
    padding: 0.625rem 1.25rem;
    border: none;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.nav-btn:hover {
    background: rgba(255,255,255,0.2);
    color: var(--white);
}

.nav-btn.active {
    background: var(--white);
    color: var(--navy);
    box-shadow: var(--shadow);
}

/* Main Content */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: -0.01em;
}

.filters {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tables */
table {
    width: 100%;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border-collapse: collapse;
    overflow: hidden;
}

th, td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
}

tbody tr {
    transition: background 0.15s ease;
}

tbody tr:hover {
    background: #f8fafc;
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.02em;
}

.status-provisional {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}
.status-regular {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}
.status-inactive {
    background: #e2e8f0;
    color: #475569;
}
.status-suspended {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}
.status-delinquent {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
    color: #b91c1c;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--background);
    border-color: var(--navy);
    color: var(--navy);
}

.btn-small {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-danger {
    background: var(--red-flag);
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #a93226;
}

/* Form Inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    background: var(--white);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--sky-blue);
    box-shadow: 0 0 0 3px rgba(91, 155, 213, 0.15);
}

input::placeholder {
    color: var(--text-light);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 95, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    overflow-y: auto;
    padding: 2rem;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 640px;
    padding: 1.75rem;
    position: relative;
    margin: auto;
    box-shadow: var(--shadow-lg);
}

.modal-small {
    max-width: 420px;
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--navy);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-content h2::before {
    content: '⚓';
    font-size: 1rem;
}

.close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.close:hover {
    color: var(--text-primary);
    background: var(--background);
}

/* Form Layout */
.form-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section h3::before {
    content: '';
    width: 3px;
    height: 14px;
    background: var(--sky-blue);
    border-radius: 2px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
    color: var(--text-secondary);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Action buttons in tables */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Search input specific styling */
#directory-search {
    width: 280px;
    padding-left: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238a9bac'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.75rem center;
    background-size: 1.25rem;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    header h1 {
        font-size: 1.25rem;
    }

    nav {
        flex-wrap: wrap;
    }

    main {
        padding: 1rem;
    }

    .section-header {
        flex-direction: column;
        align-items: stretch;
    }

    #directory-search {
        width: 100%;
    }

    table {
        display: block;
        overflow-x: auto;
    }

    .modal-content {
        margin: 1rem;
        padding: 1.25rem;
    }
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: var(--navy);
    color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    animation: slideIn 0.3s ease;
    font-weight: 500;
}

.toast.success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.toast.error {
    background: linear-gradient(135deg, var(--red-flag) 0%, #e74c3c 100%);
}

@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* User info in header */
.user-info {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

.user-info .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-info .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.club-switcher select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.4rem 2rem 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' fill-opacity='0.9' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
}

.club-switcher select:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.club-switcher select:focus {
    outline: none;
    border-color: var(--sky-blue);
}

.club-switcher select option {
    background: var(--navy);
    color: var(--white);
}

/* Make header position relative for user-info absolute positioning */
header {
    position: sticky;
}

/* Login modal specific styles */
.login-modal-content {
    max-width: 420px;
    text-align: center;
}

.login-modal-content h2 {
    justify-content: center;
    border-bottom: none;
    padding-bottom: 0;
}

.login-modal-content h2::before {
    content: '🔐';
}

.login-modal-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.login-modal-content .form-group {
    text-align: left;
}

.login-modal-content .form-actions {
    justify-content: center;
    border-top: none;
    padding-top: 0.5rem;
}

.login-modal-content .btn-primary {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
}

.login-message {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    display: none;
}

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

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

.login-message.info {
    display: block;
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Responsive adjustments for user info */
@media (max-width: 768px) {
    .user-info {
        position: static;
        transform: none;
        margin-top: 1rem;
        justify-content: flex-end;
    }
}

/* Toggle switch for admin role */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.toggle-switch input {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 40px;
    height: 22px;
    background: var(--border-color);
    border-radius: 22px;
    transition: background 0.2s ease;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--navy);
}

.toggle-switch input:checked + .toggle-slider::after {
    transform: translateX(18px);
}

.toggle-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 50px;
}

.toggle-switch input:checked ~ .toggle-label {
    color: var(--navy);
    font-weight: 600;
}

/* Users search input */
#users-search {
    width: 280px;
    padding-left: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238a9bac'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.75rem center;
    background-size: 1.25rem;
}

/* Header actions layout */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Sort buttons */
.sort-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.sort-btn {
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--border-color);
    background: var(--surface);
    color: var(--text-secondary);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sort-btn:hover {
    border-color: var(--navy);
    color: var(--navy);
}

.sort-btn.active {
    background: var(--navy);
    border-color: var(--navy);
    color: white;
}

.sort-btn.active::after {
    content: ' ↑';
}

.sort-btn.active.desc::after {
    content: ' ↓';
}

/* Documents Grid */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.document-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.document-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.document-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.document-info {
    flex: 1;
}

.document-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.document-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.document-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.8125rem;
    color: var(--text-light);
}

.document-filename {
    background: var(--background);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
    font-family: monospace;
    font-size: 0.75rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.document-size {
    color: var(--text-light);
}

.document-date {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.document-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.document-actions a {
    text-decoration: none;
}

/* Documents search */
#documents-search {
    width: 280px;
    padding-left: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238a9bac'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.75rem center;
    background-size: 1.25rem;
}

/* File input styling */
input[type="file"] {
    padding: 0.5rem;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    background: var(--background);
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="file"]:hover {
    border-color: var(--sky-blue);
    background: #f0f7ff;
}

input[type="file"]:focus {
    outline: none;
    border-color: var(--sky-blue);
    box-shadow: 0 0 0 3px rgba(91, 155, 213, 0.15);
}

.file-help {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Textarea styling */
textarea {
    resize: vertical;
    min-height: 80px;
}

/* Responsive adjustments for documents */
@media (max-width: 768px) {
    .documents-grid {
        grid-template-columns: 1fr;
    }

    #documents-search {
        width: 100%;
    }

    .document-actions {
        flex-direction: column;
    }

    .document-actions button,
    .document-actions a {
        width: 100%;
        text-align: center;
    }
}

/* PDF Viewer Modal */
.modal-fullscreen {
    max-width: 95vw;
    width: 95vw;
    height: 90vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pdf-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--background);
    flex-shrink: 0;
}

.pdf-viewer-header h2 {
    margin: 0;
    padding: 0;
    border: none;
    font-size: 1.125rem;
    color: var(--navy);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.pdf-viewer-header h2::before {
    content: '📄';
    margin-right: 0.5rem;
}

.pdf-viewer-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.close-btn {
    background: var(--background);
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.pdf-viewer-container {
    flex: 1;
    display: flex;
    background: #525659;
    overflow: hidden;
}

.pdf-viewer-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive adjustments for PDF viewer */
@media (max-width: 768px) {
    .modal-fullscreen {
        max-width: 100vw;
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }

    .pdf-viewer-header h2 {
        font-size: 1rem;
        max-width: 50%;
    }
}

/* Super Admin styles */
.nav-btn.super-admin-only {
    background: linear-gradient(135deg, #b8860b 0%, #daa520 100%);
    color: white;
}

.nav-btn.super-admin-only:hover {
    background: linear-gradient(135deg, #9a7209 0%, #c4961a 100%);
    color: white;
}

.nav-btn.super-admin-only.active {
    background: linear-gradient(135deg, #ffd700 0%, #ffec8b 100%);
    color: #5a4a00;
    box-shadow: var(--shadow);
}

/* Current club badge */
.current-club-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    padding: 0.125rem 0.5rem;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-radius: 50px;
}

/* Clubs table specific */
#clubs-table td:first-child {
    font-weight: normal;
}

#clubs-table td:first-child strong {
    font-weight: 600;
}

/* Membership Types in Club Modal */
.form-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.form-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.membership-types-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.membership-type-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.membership-type-item span {
    font-size: 0.9rem;
}

.membership-type-item .btn-remove {
    background: none;
    border: none;
    color: var(--red-flag);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.membership-type-item .btn-remove:hover {
    opacity: 1;
}

.membership-type-item .in-use {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-left: 0.5rem;
}

.add-membership-type {
    display: flex;
    gap: 0.5rem;
}

.add-membership-type input {
    flex: 1;
}

.membership-types-empty {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
    padding: 0.5rem 0;
}
