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

:root {
    --primary-color: #FF0000;
    --primary-dark: #CC0000;
    --secondary-color: #282828;
    --success-color: #00C853;
    --danger-color: #D32F2F;
    --warning-color: #FFA000;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #FFFFFF;
    --bg-light: #F5F5F5;
    --border-color: #E0E0E0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

/* Header and Navigation */
header {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s;
}

/* Hero Section */
.hero-section {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 3rem;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.status-container {
    max-width: 600px;
    margin: 0 auto;
}

.status-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-lg);
    color: var(--text-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.status-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}

.status-indicator {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator.status-up .pulse-ring {
    background-color: rgba(0, 200, 83, 0.3);
}

.status-indicator.status-down .pulse-ring {
    background-color: rgba(211, 47, 47, 0.3);
}

.status-indicator.status-slow .pulse-ring {
    background-color: rgba(255, 160, 0, 0.3);
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.status-icon {
    position: relative;
    z-index: 1;
}

.status-text {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.status-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.status-details {
    display: flex;
    justify-content: space-around;
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 10px;
}

.detail-item {
    text-align: center;
}

.detail-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.detail-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
}

.btn-refresh {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    width: 100%;
}

.btn-refresh:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

.btn-refresh:active {
    transform: scale(0.98);
}

/* Info Section */
.info-section {
    padding: 3rem 0;
    background-color: var(--bg-light);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

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

.info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.info-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Content Section */
.content-section {
    padding: 3rem 0;
}

.content-block {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.content-block h2 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.content-block h3 {
    color: var(--text-color);
    margin: 1.5rem 0 1rem;
    font-size: 1.5rem;
}

.content-block p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.content-block ul {
    margin: 1rem 0 1rem 2rem;
    color: var(--text-light);
}

.content-block li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.content-block a {
    color: var(--primary-color);
    text-decoration: none;
    transition: text-decoration 0.3s;
}

.content-block a:hover {
    text-decoration: underline;
}

.btn-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.btn-link:hover {
    color: var(--primary-dark);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.page-subtitle a {
    color: white;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
    transition: background-color 0.3s;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.page-subtitle a:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 1rem;
}

/* History Table */
.history-table-container {
    overflow-x: auto;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.history-table thead {
    background-color: var(--secondary-color);
    color: white;
}

.history-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.history-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.history-table tbody tr:hover {
    background-color: var(--bg-light);
}

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

.status-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.status-up {
    background-color: rgba(0, 200, 83, 0.2);
    color: var(--success-color);
}

.status-badge.status-down {
    background-color: rgba(211, 47, 47, 0.2);
    color: var(--danger-color);
}

.status-badge.status-slow {
    background-color: rgba(255, 160, 0, 0.2);
    color: var(--warning-color);
}

.no-data {
    text-align: center;
    color: var(--text-light);
    padding: 2rem !important;
}

/* Error List */
.error-list {
    margin: 1.5rem 0;
}

.error-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

.error-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.error-item p {
    color: var(--text-light);
    margin: 0;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin-top: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.btn-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    width: 100%;
}

.btn-submit:hover {
    background-color: var(--primary-dark);
    transform: scale(1.02);
}

.btn-submit:active {
    transform: scale(0.98);
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: rgba(0, 200, 83, 0.1);
    border-left: 4px solid var(--success-color);
    color: var(--success-color);
}

.alert-error {
    background-color: rgba(211, 47, 47, 0.1);
    border-left: 4px solid var(--danger-color);
    color: var(--danger-color);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .status-card {
        padding: 2rem 1.5rem;
    }
    
    .status-details {
        flex-direction: column;
        gap: 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-block {
        padding: 1.5rem;
    }
    
    .history-table {
        font-size: 0.9rem;
    }
    
    .history-table th,
    .history-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* Days List and Day Cards */
.days-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.day-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light);
}

.day-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.day-header h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.day-header h3 a:hover {
    color: var(--primary-color);
}

.day-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.day-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.day-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: var(--bg-light);
    border-radius: 8px;
}

.day-stat-item .stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.day-stat-item .stat-value {
    font-size: 1.1rem;
    font-weight: 700;
}

.day-stat-item .stat-value.up {
    color: var(--success-color);
}

.day-stat-item .stat-value.down {
    color: var(--danger-color);
}

.day-stat-item .stat-value.slow {
    color: var(--warning-color);
}

.day-time-range {
    margin-top: 0.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

.day-link {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.btn-view-day {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.btn-view-day:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 10px;
}

.pagination-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
    border: 2px solid var(--primary-color);
}

.pagination-btn:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

.pagination-btn.disabled {
    background-color: var(--border-color);
    color: var(--text-light);
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-btn.disabled:hover {
    transform: none;
    background-color: var(--border-color);
}

.pagination-info {
    color: var(--text-color);
    font-weight: 500;
    padding: 0 1rem;
    text-align: center;
}

/* No Data Message */
.no-data-message {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-light);
}

.no-data-message p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.no-data-message a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.no-data-message a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .day-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .day-stats {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .pagination-btn {
        width: 100%;
        text-align: center;
    }
}

