/* ===== RESET UND BASIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #F0FFFF;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 80%;
    margin: 0 auto;
    padding: 20px;
}

hr {
    width: 100%;
    margin: 20px auto;
    border: none;
    border-top: 1px solid #333;
}

/* ===== NAVIGATION ===== */
.navbar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
}

.nav-menu {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    color: #4a5568;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-link:hover {
    background-color: #f7fafc;
    color: #2d3748;
}

/* ===== HEADERS ===== */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

header h1 {
    color: #2c3e50;
    font-size: 1.8em;
    font-weight: 700;
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.page-header h2 {
    color: #2d3748;
    font-size: 1.875rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

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

.btn-info {
    background: #38b2ac;
    color: white;
}

.btn-info:hover {
    background: #319795;
}

.btn-copy {
    background-color: #38a169;
    color: white;
}

.btn-copy:hover {
    background-color: #2f855a;
    transform: translateY(-1px);
}

.btn-copy:active {
    transform: translateY(0);
}

/* Button Größen */
.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.btn-full {
    width: 100%;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
}

/* ===== CHECKBOX STYLING ===== */
.checkbox-group {
    grid-column: 1 / -1;
}

.checkbox-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

/* ===== SEARCH & FILTER ===== */
.search-bar {
    margin-bottom: 20px;
}

.search-bar input,
.search-box input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: border-color 0.3s ease;
}

.search-bar input:focus,
.search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-section {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.search-box input {
    padding: 12px 40px 12px 12px;
    border: 2px solid #e2e8f0;
    font-size: 1rem;
}

.search-box i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
}



    .filter-section {
        background: #f8f9fa;
        padding: 20px;
        border-radius: 8px;
        margin-bottom: 20px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .search-bar {
        margin-bottom: 15px;
    }

    .search-bar input {
        width: 100%;
        padding: 12px 16px;
        border: 2px solid #ddd;
        border-radius: 25px;
        font-size: 16px;
        transition: border-color 0.3s ease;
    }

    .search-bar input:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 0 3px rgba(0,123,255,0.25);
    }

    .filter-controls {
     display: flex;
     flex-wrap: wrap;
     gap: 15px;
     align-items: flex-end;
 }

    .filter-group {
        display: auto;
        flex-direction: row;
    }

    .filter-group label {
        font-weight: 600;
        margin-bottom: 5px;
        color: #333;
        font-size: 14px;
    }

    .filter-group select {
        padding: 8px 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        background: white;
        font-size: 14px;
        transition: border-color 0.3s ease;
    }

    .filter-group select:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
    }

    .btn-reset {
        padding: 8px 16px;
        font-size: 14px;
        white-space: nowrap;
    }

    /* Aktive Filter Anzeige */
    .active-filters {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #ddd;
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .filter-label {
        font-weight: 600;
        color: #666;
        font-size: 14px;
    }

    .filter-tags {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    .filter-tag {
        background: #007bff;
        color: white;
        padding: 4px 8px;
        border-radius: 12px;
        font-size: 12px;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .filter-tag .remove {
        cursor: pointer;
        font-weight: bold;
        padding: 0 2px;
    }

    .filter-tag .remove:hover {
        background: rgba(255,255,255,0.2);
        border-radius: 50%;
    }

    .result-counter {
        font-weight: bold;
        color: #666;
        margin-left: 10px;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .filter-controls {
            grid-template-columns: 1fr;
        }
        
        .active-filters {
            flex-direction: column;
            align-items: flex-start;
        }
    }

/* ===== STATS ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    font-size: 2em;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-card p {
    color: #6c757d;
    font-weight: 500;
}

/* ===== TABLES ===== */
.table-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

table,
.users-table {
    width: 100%;
    border-collapse: collapse;
}

th,
.users-table th {
    background: #00bca1;
    color: white;
    padding: 2px;
    text-align: center;
    font-weight: 200;
    position: sticky;
    top: 0;
    z-index: 5;
}

.users-table th {
    background-color: #f7fafc;
    color: #2d3748;
    padding: 0.75rem;
    position: static;
}

td,
.users-table td {
    padding: 15px;
    border-bottom: 1px solid #e1e8ed;
    vertical-align: top;
}

.users-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
}

.actions {
    display: flex;
    gap: 5px;
}

.actions form {
    display: inline;
}

/* ===== BADGES & STATUS ===== */
.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.badge-aktiv {
    background: #d4edda;
    color: #155724;
}

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

.badge-ehren {
    background: #f8d7da;
    color: #721c24;
}

.badge-group {
    background: #e2e3e5;
    color: #383d41;
}

.role-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.role-admin {
    background-color: #fed7d7;
    color: #c53030;
}

.role-user {
    background-color: #e6fffa;
    color: #2c7a7b;
}

.text-success {
    color: #48bb78;
}

.text-muted {
    color: #a0aec0;
}

/* ===== SECTION HEADERS ===== */
.form-section h3,
.tools-section h3,
.members-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.3rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

/* ===== MODALS ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 500;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #000;
}

/* ===== ALERTS ===== */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.alert-error {
    background-color: #fed7d7;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.alert-success {
    background-color: #c6f6d5;
    color: #2f855a;
    border: 1px solid #9ae6b4;
}

/* ===== LOGIN & LANDING PAGES ===== */
.login-page,
.landing-page {
    background: #18d32e;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.landing-container {
    max-width: 1000px;
    width: 100%;
}

.login-box,
.landing-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    text-align: center;
}

.landing-content {
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.login-box h1,
.landing-header h1 {
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.landing-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.login-box h2 {
    color: #4a5568;
    font-weight: 400;
    margin-bottom: 2rem;
}

.landing-subtitle {
    font-size: 1.25rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
}

.login-info,
.login-hint {
    color: #718096;
    font-size: 0.875rem;
    text-align: center;
    margin-top: 1rem;
}

.landing-header {
    margin-bottom: 3rem;
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature {
    padding: 1.5rem;
    border-radius: 8px;
    background-color: #f7fafc;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature h3 {
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.feature p {
    color: #4a5568;
    font-size: 0.95rem;
}

.landing-actions {
    border-top: 1px solid #e2e8f0;
    padding-top: 2rem;
}

/* ===== TEMPLATES ===== */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.template-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}

.template-card h3 {
    margin-bottom: 0.5rem;
    color: #2d3748;
    font-size: 1.25rem;
}

.template-subject {
    color: #4a5568;
    font-style: italic;
    margin-bottom: 1rem;
}

.template-meta {
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 1rem;
}

.template-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #718096;
}

.template-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ===== EDITOR & PREVIEW ===== */
.editor-tabs {
    display: flex;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab-btn.active {
    color: #4299e1;
    border-bottom-color: #4299e1;
}

.tab-content {
    display: none;
}

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

.code-editor {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    background-color: #f7fafc;
}

.preview-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.preview-label {
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.email-preview {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.email-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.875rem;
}

.email-subject {
    flex: 1;
}

.email-content {
    padding: 1rem;
}

.html-preview {
    width: 100%;
    height: 500px;
    border: none;
    background: white;
}

.code-preview {
    background-color: #2d3748;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 500px;
    overflow-y: auto;
    position: relative;
}

.text-preview {
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #2d3748;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 500px;
    overflow-y: auto;
    user-select: all;
}

.code-preview code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
    user-select: all;
}

/* ===== CONTENT SECTIONS ===== */
.users-section,
.users-list {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.users-section h2,
.users-list h2 {
    margin-bottom: 1.5rem;
    color: #2d3748;
}

.users-list {
    margin-bottom: 0;
}

.user-form {
    margin-bottom: 0;
}

/* ===== TOAST NOTIFICATIONS ===== */
.copy-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #2d3748;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    font-weight: 500;
}

.copy-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* ===== LOADING ANIMATION ===== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ===== SELECTION STYLING ===== */
.code-preview code::-moz-selection,
.text-preview::-moz-selection {
    background-color: #4299e1;
    color: white;
}

.code-preview code::selection,
.text-preview::selection {
    background-color: #4299e1;
    color: white;
}

/* ===== FOCUS STATES ===== */
.btn:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* ===== HOVER EFFECTS ===== */
.code-preview:hover,
.text-preview:hover {
    border-color: #cbd5e0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    header {
        flex-direction: column;
        text-align: center;
    }
    
    header h1 {
        font-size: 1.5em;
    }
    
    .header-actions {
        justify-content: center;
        margin-top: 15px;
        text-align: center;
    }
    
    .page-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
    
    .templates-grid {
        grid-template-columns: 1fr;
    }
    
    .template-actions {
        justify-content: center;
    }
    
    .preview-controls {
        flex-direction: column;
    }
    
    .email-header,
    .preview-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .btn-copy {
        width: 100%;
        justify-content: center;
    }
    
    .copy-toast {
        right: 10px;
        left: 10px;
        bottom: 10px;
    }
    
    .code-preview {
        font-size: 0.75rem;
        padding: 1rem;
    }
    
    /* Mobile Table Styling */
    .table-container {
        overflow-x: auto;
    }
    
    table, thead, tbody, th, td, tr {
        display: block;
    }
    
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    tr {
        border: 1px solid #e1e8ed;
        margin-bottom: 10px;
        border-radius: 10px;
        background: white;
        padding: 10px;
    }
    
    td {
        border: none;
        position: relative;
        padding: 10px 10px 10px 35%;
        border-bottom: 1px solid #eee;
    }
    
    td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 6px;
        width: 30%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 600;
        color: #2c3e50;
    }
    
    /* Members Table Mobile */
    .members-table thead {
        display: none;
    }
    
    .members-table tr {
        display: block;
        border: 1px solid #e2e8f0;
        margin-bottom: 15px;
        border-radius: 8px;
        padding: 15px;
        background: white;
    }
    
    .members-table td {
        display: block;
        text-align: left;
        border: none;
        padding: 5px 0;
    }
    
    .members-table td:before {
        content: attr(data-label) ": ";
        font-weight: bold;
        color: #4a5568;
    }
    
    .actions {
        flex-direction: row !important;
        justify-content: center;
        gap: 10px;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #e2e8f0;
    }
    
    .filter-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: auto;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .landing-content {
        padding: 2rem;
    }
    
    .landing-header h1 {
        font-size: 2rem;
    }
    
    .landing-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card h3 {
        font-size: 1.5em;
    }
}


/*IMPORT FORM*/

/* Import Modal Styles */
.large-modal .modal-content {
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
}

.import-instructions {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.csv-format-table {
    margin: 15px 0;
    overflow-x: auto;
}

.format-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

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

.format-table th {
    background: #007bff;
    color: white;
    font-weight: bold;
}

.standard-field {
    background: #f8f9fa;
}

.custom-field {
    background: #e3f2fd;
}

.import-tips {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 15px;
    margin-top: 15px;
}

.import-tips ul {
    margin: 10px 0;
    padding-left: 20px;
}

.template-section {
    background: #e8f5e8;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.import-results {
    background: #f8f9fa;
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.result-success {
    color: #28a745;
    font-size: 16px;
    margin-bottom: 10px;
}

.result-errors {
    color: #dc3545;
    font-size: 16px;
}

.error-list {
    background: white;
    border: 1px solid #dc3545;
    border-radius: 4px;
    padding: 10px;
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.error-list li {
    padding: 5px 0;
    border-bottom: 1px solid #f1f1f1;
}

.form-help {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .large-modal .modal-content {
        width: 95%;
        margin: 2% auto;
    }
    
    .format-table {
        font-size: 12px;
    }
    
    .format-table th,
    .format-table td {
        padding: 6px 8px;
    }
}