/* Kontakt Grid Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 30px;
    margin-bottom: 30px;
    width: 100%;
}
.contact-full {
    width: 100%;
    margin-bottom: 30px;
}

<style>
    .content-section {
        margin-bottom: 2.5rem;
        padding-left: 2rem;
        padding-right: 2rem;
    }
</style>
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow-x: hidden;
}

/* Top Header Bar */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #2c3e50;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 8px rgba(44,62,80,0.2);
    z-index: 1000;
}

.top-header h1 {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0;
}

.logout-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.logout-btn:hover {
    background: #c0392b;
}

/* Layout Container */
.layout-container {
    display: flex;
    margin-top: 60px;
    height: calc(100vh - 60px);
}

/* Sidebar Navigation */
.sidebar {
    width: 250px;
    background: #34495e;
    color: #fff;
    height: 100%;
    overflow-y: auto;
    position: fixed;
    left: 0;
    top: 60px;
    z-index: 999;
    box-shadow: 2px 0 8px rgba(44,62,80,0.1);
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar ul li.admin-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #2c3e50;
    border-bottom: 1px solid rgba(231, 76, 60, 0.3);
}

.sidebar ul li.admin-section a {
    color: #e74c3c;
    font-weight: 600;
}

.sidebar ul li.admin-section a:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
}

.sidebar ul li a {
    display: block;
    padding: 15px 20px;
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.sidebar ul li a:hover {
    background: #2c3e50;
    color: #18bc9c;
    padding-left: 25px;
}

.sidebar ul li a.active {
    background: #18bc9c;
    color: #fff;
}

/* Main Content Area */
.main-content {
    margin-left: 250px;
    flex: 1;
    padding: 0;
    height: 100%;
    overflow-y: auto;
    background: #f4f6f8;
}

/* Dashboard Content */
.dashboard-content {
    padding: 40px 30px 80px 30px;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    min-height: calc(100vh - 140px);
    border-radius: 0;
    box-shadow: none;
}

.content-section {
        padding-bottom: 1rem;
        padding-left: 2rem;
        padding-right: 2rem;
        padding-top: 1rem;
    border-bottom: 1px solid #eee;
}

/* Footer */
.footer {
    background: #34495e;
    color: #fff;
    padding: 15px;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 250px;
    right: 0;
    z-index: 998;
    box-shadow: 0 -2px 8px rgba(44,62,80,0.1);
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
}

h2, h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

h2 {
    font-size: 1.8rem;
    font-weight: 600;
}

h3 {
    font-size: 1.3rem;
    font-weight: 500;
}

a {
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #18bc9c;
}

ul {
    padding-left: 20px;
    margin-top: 10px;
}

ul li {
    margin-bottom: 8px;
    color: #555;
}

p {
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .footer {
        left: 0;
    }
    
    .top-header {
        padding: 0 15px;
    }
    
    .top-header h1 {
        font-size: 1.2rem;
    }
    
    .dashboard-content {
        padding: 20px 15px 80px 15px;
    }
}

/* Datenschutz-Management Styles */
.management-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: #2c3e50;
    background: #f8f9fa;
}

.tab-btn.active {
    color: #18bc9c;
    border-bottom-color: #18bc9c;
    font-weight: 500;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Data Table Styles */
.data-table {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

.status-active {
    background: #d4edda;
    color: #155724;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.status-review {
    background: #fff3cd;
    color: #856404;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Button Styles */
.btn-primary {
    background: #18bc9c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #16a085;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-edit {
    background: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
}

.btn-edit:hover {
    background: #0056b3;
}

.btn-download, .btn-view {
    background: #28a745;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: 5px;
}

.btn-download:hover, .btn-view:hover {
    background: #218838;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card h4 {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #18bc9c;
    margin-bottom: 5px;
}

/* Training List */
.training-list {
    margin: 20px 0;
}

.training-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 10px;
}

.training-info strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 5px;
}

.training-date, .training-participants {
    display: block;
    font-size: 0.85rem;
    color: #666;
}

/* Alert Stats */
.alert-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.alert-card {
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    background: white;
    color: #2c3e50;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-top: 4px solid #ddd;
    transition: transform 0.2s, box-shadow 0.2s;
}

.alert-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.alert-card.green {
    border-top-color: #16a085;
}

.alert-card.green h4 {
    color: #16a085;
}

.alert-card.yellow {
    border-top-color: #f39c12;
}

.alert-card.yellow h4 {
    color: #f39c12;
}

.alert-card.blue {
    border-top-color: #3498db;
}

.alert-card.blue h4 {
    color: #3498db;
}

.alert-card h4 {
    margin-bottom: 5px;
    font-size: 1rem;
}

/* Incident List */
.incident-list {
    margin: 20px 0;
}

.incident-item {
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    margin-bottom: 15px;
    border-left: 5px solid #e9ecef;
    transition: transform 0.2s, box-shadow 0.2s;
}

.incident-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.incident-item.priority-medium {
    border-left-color: #e67e22;
    background: linear-gradient(to right, #fff9f5, #ffffff);
}

.incident-item.priority-low {
    border-left-color: #16a085;
    background: linear-gradient(to right, #f0fffe, #ffffff);
}

.incident-item.priority-high {
    border-left-color: #e74c3c;
    background: linear-gradient(to right, #fdf2f2, #ffffff);
}

.incident-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.priority-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.priority-badge.medium {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

.priority-badge.low {
    background: linear-gradient(135deg, #16a085, #1abc9c);
    color: white;
    box-shadow: 0 2px 8px rgba(22, 160, 133, 0.3);
}

.priority-badge.high {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.incident-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.status-processing {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.status-resolved {
    background: linear-gradient(135deg, #16a085, #1abc9c);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(22, 160, 133, 0.3);
}

/* Report Grid */
.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.report-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.report-card h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.report-date {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 5px;
}

.report-score {
    font-size: 1.2rem;
    font-weight: bold;
    color: #18bc9c;
    margin-bottom: 10px;
}

/* Reports List */
.reports-list {
    margin: 20px 0;
}

.report-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 10px;
}

.report-info strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 5px;
}

.report-meta {
    font-size: 0.85rem;
    color: #666;
}

.report-actions {
    display: flex;
    gap: 5px;
}

/* Documents Page Styles */
.document-categories {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.category-filter {
    padding: 8px 16px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    color: #666;
}

.category-filter:hover {
    border-color: #18bc9c;
    color: #18bc9c;
}

.category-filter.active {
    background: #18bc9c;
    border-color: #18bc9c;
    color: white;
}

.document-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.doc-stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

.doc-stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #18bc9c;
}

.stat-icon svg {
    stroke: currentColor;
}

.stat-info h4 {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    color: #666;
}

.stat-info .stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: #18bc9c;
    margin: 0;
}

.document-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    gap: 20px;
    flex-wrap: wrap;
}

.search-container {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 400px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 25px 0 0 25px;
    outline: none;
    font-size: 0.9rem;
    height: 16px;
}

.search-input:focus {
    border-color: #18bc9c;
}

.search-btn {
    padding: 0 16px;
    background: #18bc9c;
    color: white;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: background 0.2s;
    height: 44px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.search-btn:hover {
    background: #16a085;
}

.upload-btn {
    white-space: nowrap;
}

.documents-grid {
    margin-top: 30px;
}

.document-section {
    margin-bottom: 40px;
}

.section-title {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.document-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.doc-icon {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 50px;
    color: #666;
}

.doc-icon svg {
    stroke: currentColor;
}

.doc-info {
    flex: 1;
    min-width: 0;
}

.doc-info strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.doc-meta {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

.doc-status {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.doc-status.current {
    background: linear-gradient(135deg, #16a085, #1abc9c);
    color: white;
}

.doc-status.outdated {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.doc-status.template {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
}

.doc-status.warning {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.doc-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-view, .btn-download, .btn-edit, .btn-use, .btn-share, .btn-renew {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-view {
    background: #3498db;
    color: white;
}

.btn-view:hover {
    background: #2980b9;
}

.btn-download {
    background: #16a085;
    color: white;
}

.btn-download:hover {
    background: #138d75;
}

.btn-edit {
    background: #f39c12;
    color: white;
}

.btn-edit:hover {
    background: #e67e22;
}

.btn-use {
    background: #9b59b6;
    color: white;
}

.btn-use:hover {
    background: #8e44ad;
}

.btn-share {
    background: #34495e;
    color: white;
}

.btn-share:hover {
    background: #2c3e50;
}

.btn-renew {
    background: #e74c3c;
    color: white;
}

.btn-renew:hover {
    background: #c0392b;
}

/* Responsive Design for Documents */
@media (max-width: 768px) {
    .document-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .doc-actions {
        justify-content: center;
    }
    
    .document-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-container {
        max-width: none;
    }
}

/* Contact Page Styles */
.contact-info-section {
    margin: 30px 0;
}

/* Form and Quick Actions Container */
.form-actions-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.contact-main {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-primary {
    background: white;
        padding: 25px;
        border-radius: 8px;
        box-shadow: none;
        border: 1px solid #eee;
}

/* Contact card styling - same as quick-action-item */
.contact-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.contact-primary h3 {
    color: #2c3e50;
    margin: 0 0 25px 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.contact-card h3 {
    color: #2c3e50;
    margin: 0 0 25px 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* Special styling for office hours section - single column layout */
.contact-primary:nth-child(2) .contact-details {
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Contact card details - single column for better fit */
.contact-card .contact-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 1rem;
    color: #2c3e50;
    line-height: 1.5;
}

.detail-value a {
    color: #18bc9c;
    text-decoration: none;
    font-weight: 500;
}

.detail-value a:hover {
    text-decoration: underline;
}

.contact-emergency {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border-left: none;
    box-shadow: none;
    border: 1px solid #eee;
}

.contact-emergency h3 {
    color: #e74c3c;
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.emergency-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.emergency-notice strong {
    color: #c0392b;
    display: block;
    margin-bottom: 8px;
}

.emergency-notice p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.emergency-contacts {
    display: flex;
    gap: 30px;
}

.emergency-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.emergency-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.emergency-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e74c3c;
    text-decoration: none;
}

.emergency-link:hover {
    text-decoration: underline;
}

.emergency-availability {
    background: #eee;
    color: #333;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    align-self: flex-start;
}

.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.office-hours,
.response-times {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.office-hours h4,
.response-times h4 {
    color: #2c3e50;
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #f8f9fa;
}

.hours-list,
.response-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hours-item,
.response-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

.hours-item:last-child,
.response-item:last-child {
    border-bottom: none;
}

.day,
.response-type {
    color: #666;
    font-size: 0.9rem;
}

.time,
.response-times {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: none;
    border: none;
}

.hours-special {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    border-left: 3px solid #18bc9c;
}

/* Contact Form Styles */
.contact-form-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    margin: 40px 0;
}

.contact-form-section h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.contact-form {
    margin-top: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 25px;
        width: 100%;
        margin: 30px 0 0 0;
        padding: 0;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #18bc9c;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    line-height: 1.5;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-label a {
    color: #18bc9c;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

/* Quick Actions */
.quick-actions-section {
    margin: 40px 0;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

/* Special 70/30 layout for contact information section */
.contact-info-section .quick-actions {
    grid-template-columns: 1fr 0.43fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* Quick Actions in form container - single column layout */
.form-actions-container .quick-actions {
    grid-template-columns: 1fr;
    gap: 15px;
}

.quick-action-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.quick-action-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
    text-decoration: none;
    color: inherit;
}

.action-icon {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    color: #18bc9c;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.action-icon svg {
    stroke: currentColor;
}

.action-content strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1rem;
}

.action-content span {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Response Info */
.response-info {
    margin: 40px 0;
}

.info-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #18bc9c;
}

.info-card h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    color: #666;
}

.info-card ul li:last-child {
    border-bottom: none;
}

.info-card ul li strong {
    color: #2c3e50;
}

/* Responsive Contact Design */
@media (max-width: 768px) {
    /* Contact info section - 70/30 grid becomes single column */
    .contact-info-section .quick-actions {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Form and actions container - 2fr 1fr becomes single column */
    .form-actions-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info-section {
        margin: 20px 0;
    }
    
    /* Contact cards responsive padding */
    .contact-card {
        padding: 20px;
    }
    
    .contact-details {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-primary {
        padding: 18px 25px;
    }
    
    .contact-emergency {
        padding: 20px;
    }
    
    .emergency-contacts {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Form responsiveness */
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions .btn-primary,
    .form-actions .btn-secondary {
        width: 100%;
    }
    
    /* Quick actions responsive */
    .quick-actions {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .quick-action-item {
        padding: 15px;
    }
    
    /* Response info section */
    .response-info {
        margin: 20px 0;
    }
    
    .contact-form-section {
        padding: 20px;
    }
    
    /* Emergency section mobile adjustments */
    .emergency-content {
        gap: 15px;
    }
    
    .emergency-availability {
        text-align: center;
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    /* Further optimize for very small screens */
    .dashboard-content {
        padding: 20px 15px 60px 15px;
    }
    
    /* Contact cards with less padding */
    .contact-card {
        padding: 15px;
    }
    
    .contact-card h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    /* Form elements full width with better touch targets */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Quick action items with better spacing */
    .quick-action-item {
        padding: 12px;
        border-radius: 8px;
    }
    
    .action-content strong {
        font-size: 1rem;
    }
    
    .action-content span {
        font-size: 0.85rem;
    }
    
    /* Emergency section adjustments */
    .emergency-contacts {
        gap: 12px;
    }
    
    .emergency-link {
        font-size: 1rem;
    }
    
    /* Response info adjustments */
    .contact-primary ul li {
        margin-bottom: 10px;
        line-height: 1.4;
    }
}

/* Settings Page Styles */
.settings-tabs {
    display: flex;
    gap: 5px;
    margin: 30px 0;
    border-bottom: 2px solid #e9ecef;
    overflow-x: auto;
}

.settings-tab-btn {
    background: none;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
    font-weight: 500;
}

.settings-tab-btn:hover {
    color: #2c3e50;
    background: #f8f9fa;
}

.settings-tab-btn.active {
    color: #18bc9c;
    border-bottom-color: #18bc9c;
    font-weight: 600;
}

.settings-tab-content {
    display: none;
}

.settings-tab-content.active {
    display: block;
}

.settings-section {
    margin: 30px 0;
}

.settings-section h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.4rem;
    font-weight: 600;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 10px;
}

.settings-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: none;
    border: 1px solid #eee;
    border-top: 3px solid #e9ecef;
}

.settings-card.danger {
    border-top-color: #e74c3c;
}

.settings-card h4 {
    color: #2c3e50;
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.settings-form .form-group {
    margin-bottom: 20px;
}

.settings-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
}

.settings-form input,
.settings-form select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.settings-form input:focus,
.settings-form select:focus {
    outline: none;
    border-color: #18bc9c;
}

.settings-form input[readonly] {
    background: #f8f9fa;
    color: #666;
}

/* Company Info */
.company-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f8f9fa;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: #666;
}

.info-value {
    color: #2c3e50;
    font-weight: 500;
}

/* Notification Settings */
.notification-settings {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f8f9fa;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.notification-info strong {
    color: #2c3e50;
    font-size: 1rem;
}

.notification-info span {
    color: #666;
    font-size: 0.85rem;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background: #18bc9c;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Security Settings */
.security-status {
    text-align: center;
    padding: 20px;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    font-weight: 500;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e74c3c;
}

.status-indicator.active .status-dot {
    background: #16a085;
}

.password-requirements {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.password-requirements h5 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.password-requirements ul {
    margin: 0;
    padding-left: 20px;
}

.password-requirements li {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

/* Sessions */
.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.session-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.session-item.current {
    background: #f0fffe;
    border: 1px solid #16a085;
}

.session-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.session-info strong {
    color: #2c3e50;
}

.session-info span {
    color: #666;
    font-size: 0.85rem;
}

.session-badge {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.session-badge.current {
    background: #16a085;
    color: white;
}

.btn-danger-small {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

/* Preferences */
.preference-group {
    margin-bottom: 20px;
}

.preference-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.preference-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.form-select {
    width: auto;
    min-width: 200px;
}

/* Export Settings */
.export-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.export-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.export-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.export-info strong {
    color: #2c3e50;
}

.export-info span {
    color: #666;
    font-size: 0.85rem;
}

/* Storage Info */
.storage-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.storage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.storage-label {
    font-weight: 500;
    color: #2c3e50;
}

.storage-value {
    color: #666;
}

.storage-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.storage-fill {
    height: 100%;
    background: #18bc9c;
    border-radius: 4px;
    transition: width 0.3s;
}

.storage-breakdown {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.breakdown-item {
    color: #666;
    font-size: 0.85rem;
}

/* Danger Zone */
.danger-zone {
    text-align: center;
    padding: 20px;
    background: #fff5f5;
    border-radius: 6px;
    border: 1px solid #fee;
}

.danger-zone p {
    color: #e74c3c;
    margin-bottom: 15px;
}

.btn-danger {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.btn-danger:hover {
    background: #c0392b;
}

/* Responsive Settings */
@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .settings-tabs {
        flex-wrap: wrap;
    }
    
    .settings-card {
        padding: 20px;
    }
    
    .notification-item,
    .export-item,
    .session-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .preference-item {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .form-select {
        width: 100%;
    }
}

/* ===== DASHBOARD PAGE STYLES ===== */
/* Clean, minimal dashboard design */

.page-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e5e9;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header h1 {
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.5px;
}

.header-meta {
    color: #6b7280;
    font-size: 14px;
}

.last-update {
    color: #6b7280;
}

/* Status Grid - Clean KPI cards */
.status-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.status-card {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    padding: 24px;
    border-radius: 6px;
    text-align: left;
}

.status-number {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 8px;
}

.status-label {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-change {
    font-size: 13px;
    font-weight: 500;
}

.status-change.positive {
    color: #059669;
}

.status-change.neutral {
    color: #6b7280;
}

.status-change.warning {
    color: #d97706;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}
        display: grid;
        grid-template-columns: 7fr 3fr;
        gap: 30px;
        width: 100%;
        margin-bottom: 0;
    border-radius: 6px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px 24px;
    border-bottom: 1px solid #f3f4f6;
}

.section-header h2 {
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.view-all {
    color: #374151;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

.view-all:hover {
    color: #1f2937;
}

/* Activity Feed */
.activity-feed {
    padding: 0;
}

.activity-entry {
    display: flex;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid #f3f4f6;
}

.activity-entry:last-child {
    border-bottom: none;
}

.activity-date {
    color: #6b7280;
    font-size: 12px;
    font-weight: 500;
    min-width: 70px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-content {
    flex: 1;
}

.activity-title {
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.activity-description {
    color: #6b7280;
    font-size: 13px;
}

/* Task List */
.task-list {
    padding: 0;
}

.task-entry {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid #f3f4f6;
}

.task-entry:last-child {
    border-bottom: none;
}

.task-priority {
    width: 3px;
    height: 40px;
    border-radius: 2px;
    flex-shrink: 0;
}

.task-entry.high .task-priority {
    background: #dc2626;
}

.task-entry.medium .task-priority {
    background: #d97706;
}

.task-entry.low .task-priority {
    background: #6b7280;
}

.task-content {
    flex: 1;
}

.task-title {
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.task-due {
    color: #6b7280;
    font-size: 12px;
}

.task-status {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f3f4f6;
    color: #6b7280;
}

/* Bottom Section */
.bottom-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.action-section,
.overview-section {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 24px;
}

.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn.primary {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
}

.action-btn.primary:hover {
    background: #000000;
}

.action-btn.secondary {
    background: #ffffff;
    color: #374151;
    border-color: #d1d5db;
}

.action-btn.secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* System Status */
.system-status {
    space-y: 12px;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.status-row:last-child {
    border-bottom: none;
}

.status-item {
    color: #6b7280;
    font-size: 14px;
}

.status-value {
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 500;
}

.status-value.operational {
    color: #059669;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .status-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .bottom-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .status-grid {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-btn {
        text-align: center;
    }
    
    .task-entry,
    .activity-entry {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .activity-date {
        min-width: auto;
    }
}

/* ===== ADMIN DASHBOARD STYLES ===== */
/* Professional admin interface for system management */

.admin-badge {
    background: #dc2626;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 12px;
}

/* Admin Status Grid */
.admin-status-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.admin-status-card {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    padding: 20px;
    border-radius: 6px;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.status-header h3 {
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6b7280;
}

.status-indicator.operational {
    background: #10b981;
}

.storage-bar {
    height: 4px;
    background: #f3f4f6;
    border-radius: 2px;
    overflow: hidden;
    width: 60px;
}

.storage-used {
    height: 100%;
    background: #3b82f6;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.admin-status-card .status-number {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.status-details {
    color: #6b7280;
    font-size: 12px;
}

/* Admin Content Grid */
.admin-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.admin-section {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f3f4f6;
}

.admin-section-header h2 {
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.section-actions {
    display: flex;
    gap: 8px;
}

/* Admin Table */
.admin-table-container {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: #f9fafb;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.admin-table td {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: #6b7280;
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.role-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.role-badge.admin {
    background: #fef2f2;
    color: #dc2626;
}

.role-badge.user {
    background: #f0f9ff;
    color: #0369a1;
}

.role-badge.dsb {
    background: #fef3c7;
    color: #d97706;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active {
    background: #dcfce7;
    color: #166534;
}

.status-badge.inactive {
    background: #f3f4f6;
    color: #6b7280;
}

.table-actions {
    display: flex;
    gap: 8px;
}

/* Content Management */
.content-management-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 24px;
}

.content-card {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 16px;
}

.content-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.content-card-header h4 {
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.content-count {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.content-count.warning {
    color: #d97706;
}

.content-count.success {
    color: #059669;
}

.content-stats {
    margin-bottom: 12px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.trend-positive {
    color: #059669;
    font-weight: 600;
}

.content-actions {
    display: flex;
    gap: 8px;
}

/* System Settings */
.system-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 24px;
}

.setting-group h4 {
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-label {
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 500;
    display: block;
    margin-bottom: 2px;
}

.setting-desc {
    color: #6b7280;
    font-size: 12px;
}

.setting-select {
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    background: white;
}

/* Activity Log */
.activity-log {
    padding: 0;
}

.log-entry {
    display: grid;
    grid-template-columns: 140px 200px 1fr 80px;
    gap: 16px;
    align-items: center;
    padding: 12px 24px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-time {
    color: #6b7280;
    font-family: monospace;
}

.log-user {
    color: #374151;
    font-weight: 500;
}

.log-action {
    color: #1a1a1a;
}

.log-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
}

.log-status.success {
    background: #dcfce7;
    color: #166534;
}

.log-status.info {
    background: #dbeafe;
    color: #1d4ed8;
}

.log-status.warning {
    background: #fef3c7;
    color: #d97706;
}

.log-status.error {
    background: #fef2f2;
    color: #dc2626;
}

/* Buttons */
.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

.btn-primary:hover {
    background: #000000;
}

.btn-secondary {
    background: white;
    color: #374151;
    border-color: #d1d5db;
}

.btn-secondary:hover {
    background: #f9fafb;
}

.btn-success {
    background: #059669;
    color: white;
    border-color: #059669;
}

.btn-success:hover {
    background: #047857;
}

.btn-warning {
    background: #d97706;
    color: white;
    border-color: #d97706;
}

.btn-warning:hover {
    background: #b45309;
}

.btn-danger {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}

.btn-danger:hover {
    background: #b91c1c;
}

/* Responsive Admin Design */
@media (max-width: 1200px) {
    .content-management-grid {
        grid-template-columns: 1fr;
    }
    
    .system-settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .admin-status-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .log-entry {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: left;
    }
    
    .log-time {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .admin-status-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-section-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .admin-table {
        font-size: 12px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 8px 12px;
    }
    
    .table-actions {
        flex-direction: column;
        gap: 4px;
    }
    
    .header-meta {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }
}

/* ===== MANDANTEN MANAGEMENT STYLES ===== */
.mandant-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 12px;
}

.mandant-selector label {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

.mandant-select {
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    background: white;
    min-width: 180px;
}

.mandant-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mandant-logo {
    width: 40px;
    height: 40px;
    background: #3b82f6;
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.mandant-name {
    font-weight: 600;
    color: #1a1a1a;
}

.mandant-id {
    font-size: 12px;
    color: #6b7280;
    font-family: monospace;
}

.contact-phone {
    font-size: 12px;
    color: #6b7280;
}

.tariff-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.tariff-badge.trial {
    background: #fef3c7;
    color: #d97706;
}

.tariff-badge.basic {
    background: #f0f9ff;
    color: #0369a1;
}

.tariff-badge.business {
    background: #f0f9ff;
    color: #1d4ed8;
}

.tariff-badge.premium {
    background: #f3e8ff;
    color: #7c3aed;
}

.tariff-badge.enterprise {
    background: #f0fdf4;
    color: #166534;
}

.status-badge.trial {
    background: #fef3c7;
    color: #d97706;
}

.compliance-score {
    font-weight: 600;
    font-size: 14px;
}

.compliance-score.good {
    color: #059669;
}

.compliance-score.warning {
    color: #d97706;
}

.compliance-score.danger {
    color: #dc2626;
}

.section-subtitle {
    color: #6b7280;
    font-weight: 400;
    font-size: 14px;
}

/* ===== MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal-content {
    background: white;
    margin: 2% auto;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
    color: #1a1a1a;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    font-size: 28px;
    font-weight: bold;
    color: #6b7280;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #1a1a1a;
}

.modal-form {
    padding: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

        grid-column: 1 / 3;
        width: 100%;
        margin-top: 30px;
        margin-bottom: 0;
    font-weight: 500;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-section {
    margin-bottom: 24px;
}

.form-section h3 {
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.permissions-grid,
.access-grid,
.measures-grid,
.target-group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.permission-item,
.access-item,
.measure-item,
.target-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 0;
}

.permission-item input,
.access-item input,
.measure-item input,
.target-item input {
    margin: 0;
}

.file-upload {
    position: relative;
    border: 2px dashed #d1d5db;
    border-radius: 6px;
    padding: 24px;
    text-align: center;
    background: #f9fafb;
    transition: border-color 0.2s ease;
}

.file-upload:hover {
    border-color: #2563eb;
}

.file-upload input {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-text span {
    color: #374151;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

.file-upload-text small {
    color: #6b7280;
    font-size: 12px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    margin-top: 10px;
    padding: 6px 12px;

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .permissions-grid,
    .access-grid,
    .measures-grid,
    .target-group-grid {
        grid-template-columns: 1fr;
    }
    
    .mandant-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}
