/* Admin Dashboard Layout */
.admin-dashboard {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar.collapsed {
    transform: translateX(-250px);
}

.sidebar-header {
    padding: 25px;
    border-bottom: 1px solid #34495e;
    background: rgba(255,255,255,0.1);
}

.sidebar-header h2 {
    margin: 0;
    font-size: 1.6em;
    display: flex;
    align-items: center;
}

.sidebar-header i {
    margin-right: 12px;
    color: #3498db;
}

.sidebar-nav {
    padding: 25px 0;
}

.sidebar-nav a {
    display: block;
    color: #bdc3c7;
    text-decoration: none;
    padding: 18px 25px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    font-weight: 500;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background: rgba(52, 152, 219, 0.2);
    color: #fff;
    border-left-color: #3498db;
    transform: translateX(5px);
}

.sidebar-nav a i {
    margin-right: 10px;
    width: 20px;
}

.sidebar-user {
    padding: 20px 25px;
    background: rgba(255,255,255,0.1);
    border-bottom: 1px solid #34495e;
    color: #ecf0f1;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-user i {
    margin-right: 10px;
    color: #3498db;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    transition: margin-left 0.3s ease;
}

.main-content.expanded {
    margin-left: 0;
}

.top-header {
    background: #fff;
    padding: 15px 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.2em;
    color: #2c3e50;
    margin-right: 20px;
    cursor: pointer;
    padding: 10px;
    border-radius: 4px;
    transition: background 0.3s;
}

.menu-toggle:hover {
    background: #f8f9fa;
}

.top-header h1 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5em;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    color: #2c3e50;
    font-weight: 500;
}

.user-info i {
    margin-right: 5px;
}

.logout-btn, .login-btn {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.logout-btn:hover, .login-btn:hover {
    background: linear-gradient(45deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.login-btn {
    background: linear-gradient(45deg, #27ae60, #229954);
}

.login-btn:hover {
    background: linear-gradient(45deg, #229954, #1e8449);
}

.content {
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-250px);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

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

header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

h1 {
    color: #667eea;
    margin: 0;
    font-size: 3em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

nav {
    margin-top: 10px;
}

nav a {
    color: #667eea;
    margin: 0 20px;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid transparent;
}

nav a:hover {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

main {
    margin-top: 20px;
}

.sites-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
}

.contacts-list {
    list-style: none;
    padding: 0;
}

.contact {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact.nouveau {
    border-left: 5px solid #ffc107;
}

.contact.en\ cours {
    border-left: 5px solid #007bff;
}

.contact.clôturer {
    border-left: 5px solid #28a745;
}

.contact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.contact-header strong {
    font-size: 1.1em;
}

.contact .status {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: bold;
}

.contact.nouveau .status {
    background: #fff3cd;
    color: #856404;
}

.contact.en\ cours .status {
    background: #cce5ff;
    color: #004085;
}

.contact.clôturer .status {
    background: #d4edda;
    color: #155724;
}

.contact .site {
    margin: 5px 0;
    font-style: italic;
    color: #666;
}

.contact .message {
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-left: 3px solid #ddd;
    white-space: pre-wrap;
}

.contact .notes {
    margin: 10px 0;
    padding: 10px;
    background: #fff3cd;
    border-left: 3px solid #ffc107;
}

.contact .note {
    margin: 5px 0;
    font-size: 0.9em;
    color: #856404;
}

.contact .timestamp {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.status-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

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

.form-group textarea,
.form-group select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9em;
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.status-form button {
    align-self: flex-start;
    padding: 8px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

.status-form button:hover {
    background: #0056b3;
}

/* Tabs */
.tabs {
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    gap: 5px;
}

.tab-button {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1em;
    border-bottom: 1px solid #ddd;
    transition: all 0.3s ease;
    color: #666;
}

.tab-button.active {
    background: #3498db;
    color: white;
    border-bottom-color: #3498db;
    font-weight: bold;
}

.tab-button:hover {
    background: #e9ecef;
}

.site {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.site:hover {
    transform: translateY(-5px);
}

.site.up {
    border-left: 5px solid #28a745;
}

.site.down {
    border-left: 5px solid #dc3545;
}

.site .name {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
}

.site .url {
    color: #666;
    margin-bottom: 10px;
    word-break: break-all;
}

.site .keyword {
    color: #888;
    font-size: 0.9em;
    margin-bottom: 10px;
    font-style: italic;
}

.site .status {
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
}

.site.up .status {
    background: #d4edda;
    color: #155724;
}

.site.down .status {
    background: #f8d7da;
    color: #721c24;
}

.site button {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    margin-top: 10px;
}

.site button:hover {
    background: #c82333;
}

.site .last-check {
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
}

button {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 25px;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

button:hover {
    background: linear-gradient(45deg, #5a67d8, #6b46c1);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

form {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 30px auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

form h2 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.5em;
    text-align: center;
    margin-bottom: 25px;
}

input {
    width: 100%;
    padding: 15px;
    margin: 12px 0;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 1em;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.8);
}

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

label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

select {
    width: 100%;
    padding: 15px;
    margin: 12px 0;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 1em;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.8);
}

select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: #fff;
}

textarea {
    width: 100%;
    padding: 15px;
    margin: 12px 0;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 1em;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.8);
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: #fff;
}

.summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
    padding: 0 8px;
}

.summary-item {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.summary-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.summary-item h3 {
    margin: 0 0 8px 0;
    color: #667eea;
    font-size: clamp(0.8em, 2vw, 1em);
}

.summary-item p {
    font-size: clamp(1.5em, 4vw, 2em);
    margin: 0;
    font-weight: bold;
    color: #2c3e50;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.metrics {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.metric {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    align-items: center;
}

.metric span:first-child {
    color: #555;
    font-size: 0.9em;
}

.metric span:last-child {
    font-weight: bold;
    color: #2c3e50;
}

.metric i {
    margin-right: 5px;
    color: #3498db;
}

.ping-bar {
    background: #eee;
    height: 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.ping-label {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 5px;
    font-weight: 500;
}

.bar {
    height: 100%;
    background: linear-gradient(to right, #28a745, #ffc107, #dc3545);
    transition: width 0.5s;
}

.last-check {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.last-check i {
    margin-right: 5px;
    color: #3498db;
}

.history-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.history-label {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 5px;
    font-weight: 500;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot.up {
    background: #28a745;
}

.dot.down {
    background: #dc3545;
}

.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.site-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.site-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.site-card.up {
    border-left: 6px solid #27ae60;
    box-shadow: 0 8px 32px rgba(39, 174, 96, 0.2);
}

.site-card.down {
    border-left: 6px solid #e74c3c;
    background: rgba(231, 76, 60, 0.05);
    box-shadow: 0 8px 32px rgba(231, 76, 60, 0.2);
}

.site-card .status {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9em;
}

.site-card.up .status {
    background: #d4edda;
    color: #155724;
}

.site-card.down .status {
    background: #f8d7da;
    color: #721c24;
}

.site-card h3 {
    margin: 0 0 10px 0;
}

.site-card h3 i {
    margin-right: 8px;
    color: #3498db;
}

.site-card .url {
    color: #666;
    margin-bottom: 10px;
    word-break: break-all;
}

.site-card .url i {
    margin-right: 5px;
    color: #3498db;
}

.site-card .keyword {
    color: #888;
    font-size: 0.9em;
    margin-bottom: 10px;
    font-style: italic;
}

.site-card .keyword i {
    margin-right: 5px;
    color: #3498db;
}

.hero {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 8px;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-primary {
    background: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #fff;
    color: #007bff;
    border: 2px solid #007bff;
}

.btn-secondary:hover {
    background: #007bff;
    color: #fff;
}

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

.feature {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.feature h3 {
    color: #007bff;
    margin-bottom: 15px;
}

.cta {
    text-align: center;
    padding: 40px;
    background: #e3f2fd;
    border-radius: 8px;
}

.cta h2 {
    color: #007bff;
    margin-bottom: 20px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

form button {
    width: 100%;
    margin-top: 10px;
}

/* Status log in dashboard */
.status-log-container {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 25px;
    margin-top: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.status-log-container h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.4em;
    text-align: center;
    margin-bottom: 20px;
}

.status-log {
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.status-log p {
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #555;
}

.status-log p:last-child {
    border-bottom: none;
}

/* Status table */
.status-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

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

.status-table th {
    background: #3498db;
    color: white;
    font-weight: 600;
    padding: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-table td {
    padding: 12px 15px;
    transition: background 0.2s;
}

.status-table tr:hover td {
    background: rgba(52, 152, 219, 0.05);
}

.status-table td.up {
    color: #27ae60;
    font-weight: bold;
}

.status-table td.down {
    color: #e74c3c;
    font-weight: bold;
}

/* Stats table */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

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

.stats-table th {
    background: #3498db;
    color: white;
    font-weight: 600;
    padding: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stats-table td {
    padding: 12px 15px;
    transition: background 0.2s;
}

.stats-table tr:hover td {
    background: rgba(52, 152, 219, 0.1);
}

.stats-table tr.up {
    background: rgba(39, 174, 96, 0.05);
}

.stats-table tr.down {
    background: rgba(231, 76, 60, 0.05);
}

/* Period buttons for history page */
#period-buttons {
    margin: 10px 0;
}

.period-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 12px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
}

.period-btn:hover {
    background: #2980b9;
}

.period-btn.active {
    background: #e74c3c;
}

/* Fullscreen Mode Styles */
.fullscreen-mode .sidebar {
    display: none;
}

.fullscreen-mode .main-content {
    margin-left: 0;
    width: 100%;
}

.fullscreen-mode .top-header {
    display: none;
}

.fullscreen-dashboard {
    padding: clamp(5px, 1vw, 10px);
    max-width: 100%;
    margin: 0 auto;
    height: 100vh;
    overflow-y: auto;
}

.fullscreen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
}

.fullscreen-header h1 {
    margin: 0;
    font-size: 2.5em;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.fullscreen-header i {
    margin-right: 15px;
    color: #3498db;
}

.fullscreen-controls {
    display: flex;
    gap: 15px;
}

.fullscreen-btn, .exit-fullscreen-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.fullscreen-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    padding: 12px 20px;
    background: rgba(52, 152, 219, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 25px;
    font-size: clamp(0.9em, 2vw, 1em);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.fullscreen-btn:hover {
    background: rgba(41, 128, 185, 0.95);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.exit-fullscreen-btn {
    background: #e74c3c;
    color: white;
}

.exit-fullscreen-btn:hover {
    background: #c0392b;
}

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

.fullscreen-site-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fullscreen-site-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.fullscreen-site-card.up {
    border-left: 5px solid #27ae60;
}

.fullscreen-site-card.down {
    border-left: 5px solid #e74c3c;
}

.fullscreen-site-card.warning {
    border-left: 5px solid #f39c12;
}

.fullscreen-site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.fullscreen-site-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.fullscreen-site-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    text-transform: uppercase;
}

.fullscreen-site-status.up {
    background: #d4edda;
    color: #155724;
}

.fullscreen-site-status.down {
    background: #f8d7da;
    color: #721c24;
}

.fullscreen-site-status.warning {
    background: #fff3cd;
    color: #856404;
}

.fullscreen-site-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 0.9em;
    color: #7f8c8d;
}

.fullscreen-site-info div {
    display: flex;
    justify-content: space-between;
}

.fullscreen-events {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.fullscreen-events h2 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.8em;
    display: flex;
    align-items: center;
}

.fullscreen-events i {
    margin-right: 10px;
    color: #3498db;
}

.fullscreen-events-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

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

.fullscreen-events-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #2c3e50;
}

.fullscreen-events-table tr:hover {
    background: #f8f9fa;
}

.fullscreen-events-table .status-up {
    color: #27ae60;
}

.fullscreen-events-table .status-down {
    color: #e74c3c;
}

.fullscreen-events-table .status-warning {
    color: #f39c12;
}

/* Responsive adjustments for fullscreen */
@media (max-width: 768px) {
    .fullscreen-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .fullscreen-sites {
        grid-template-columns: 1fr;
    }

    .fullscreen-events-table {
        font-size: 0.8em;
    }
}

/* Fullscreen Charts */
.fullscreen-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
    padding: 0 8px;
}

.chart-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chart-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.chart-card.up {
    border-left: 5px solid #27ae60;
}

.chart-card.down {
    border-left: 5px solid #e74c3c;
}

.chart-card.warning {
    border-left: 5px solid #f39c12;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.chart-header h3 {
    margin: 0;
    font-size: clamp(1em, 2.5vw, 1.2em);
    color: #2c3e50;
}

.chart-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    text-transform: uppercase;
}

.chart-status.up {
    background: #d4edda;
    color: #155724;
}

.chart-status.down {
    background: #f8d7da;
    color: #721c24;
}

.chart-status.warning {
    background: #fff3cd;
    color: #856404;
}

.chart-container {
    height: 18vh;
    min-height: 120px;
    max-height: 200px;
    margin-bottom: 10px;
}

.chart-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    font-size: 0.9em;
    color: #7f8c8d;
}

.chart-info .metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.chart-info .metric span:first-child {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

/* Responsive for charts */
@media (max-width: 1200px) {
    .fullscreen-charts {
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 900px) {
    .fullscreen-charts {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 10px;
    }
    
    .chart-container {
        height: 15vh;
        min-height: 100px;
    }
}

@media (max-width: 768px) {
    .fullscreen-dashboard {
        padding: 5px;
    }
    
    .fullscreen-charts {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .chart-container {
        height: 12vh;
        min-height: 80px;
    }

    .chart-info {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0 5px;
    }
    
    .summary-item {
        padding: 12px;
    }
    
    .summary-item h3 {
        font-size: 0.8em;
    }
    
    .summary-item p {
        font-size: 1.4em;
    }
}

@media (max-width: 480px) {
    .fullscreen-charts {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .chart-container {
        height: 10vh;
        min-height: 70px;
    }
    
    .chart-card {
        padding: 10px;
    }
    
    .chart-header h3 {
        font-size: 1em;
    }
    
    .summary {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .fullscreen-btn {
        top: 5px;
        right: 5px;
        padding: 6px 12px;
        font-size: 0.7em;
    }
}

/* Index Page Styles */
.site-header {
    background: #3498db;
    color: white;
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.site-header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: 700;
}

.site-header p {
    margin: 10px 0 0 0;
    font-size: 1.2em;
    opacity: 0.9;
}

.intro {
    padding: 60px 20px;
    text-align: center;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.intro h2 {
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 20px;
}

.intro p {
    max-width: 800px;
    margin: 0 auto 15px auto;
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
}

.features {
    padding: 60px 20px;
    background: white;
}

.features h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.feature p {
    color: #666;
    line-height: 1.6;
}

.cta {
    padding: 60px 20px;
    background: #e3f2fd;
    color: #333;
    text-align: center;
}

.cta h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.1em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta .btn-primary, .cta .btn-secondary {
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta .btn-primary {
    background: #1976d2;
    color: white;
}

.cta .btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.cta .btn-secondary {
    background: rgba(255,255,255,0.9);
    color: #1976d2;
    border: 2px solid #1976d2;
}

.cta .btn-secondary:hover {
    background: #1976d2;
    color: white;
    transform: translateY(-2px);
}

.site-footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
}

/* Contact Page Styles */
.contact-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="60" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="60" cy="30" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-hero h1 {
    font-size: 3em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.hero-subtitle {
    font-size: 1.3em;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    padding: 15px 25px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.feature-item i {
    font-size: 1.2em;
    color: #ffd700;
}

.feature-item span {
    font-weight: 500;
}

/* Info Section */
.contact-info-section {
    padding: 60px 20px;
    background: #f8f9fa;
}

.info-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.info-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2em;
}

.info-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.info-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.info-card ul {
    text-align: left;
    color: #666;
    padding-left: 20px;
}

.info-card li {
    margin-bottom: 8px;
}

/* Form Section */
.contact-form-section {
    padding: 60px 20px;
    background: white;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    color: #2c3e50;
    font-size: 2.2em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-header p {
    color: #666;
    font-size: 1.1em;
}

.contact-form {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.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-group textarea {
    resize: vertical;
    min-height: 120px;
}

.field-hint {
    font-size: 0.85em;
    color: #888;
    margin-top: 5px;
    font-style: italic;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.form-note {
    margin-top: 20px;
    padding: 15px;
    background: #e8f4fd;
    border-radius: 8px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9em;
}





/* Responsive Design */
@media (max-width: 768px) {
    .contact-hero h1 {
        font-size: 2.2em;
        flex-direction: column;
        gap: 10px;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
    }

    .feature-item {
        width: 100%;
        max-width: 300px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 25px;
    }

    .form-header h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 40px 20px;
    }

    .contact-hero h1 {
        font-size: 1.8em;
    }

    .info-card {
        padding: 20px;
    }

    .contact-method {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .method-content {
        text-align: center;
    }
}

/* Flash Messages */
.flash-messages {
    margin: 20px auto;
    max-width: 600px;
}

.flash {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-weight: 500;
}

.flash.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}