﻿/* AtexPreviewSrv - Modern Lightweight Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.jumbotron {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.jumbotron h1 {
    color: white;
    margin-bottom: 10px;
    font-size: 2.5rem;
    font-weight: 300;
}

.jumbotron .lead {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    color: #666;
}

/* Error and Status Styles */
.text-danger {
    color: #dc3545;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin: 10px 0;
}

/* Service Status Display Styles */
.service-status-container {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.service-status-container h2 {
    color: #495057;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.status-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease;
}

.status-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.status-header {
    background-color: #007bff;
    color: white;
    padding: 12px 16px;
    font-weight: 600;
}

.status-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.status-content {
    padding: 16px;
}

.status-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block;
}

.status-indicator.active .status-dot {
    background-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.3);
}

.status-indicator.inactive .status-dot {
    background-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.3);
}

.status-text {
    font-weight: 600;
    font-size: 1.1rem;
}

.status-indicator.active .status-text {
    color: #28a745;
}

.status-indicator.inactive .status-text {
    color: #dc3545;
}

.status-detail {
    margin-bottom: 8px;
    color: #495057;
    font-size: 0.95rem;
}

.status-detail:last-child {
    margin-bottom: 0;
}

.countdown-display {
    text-align: center;
    padding: 10px;
}

.countdown-time {
    font-size: 1.3rem;
    font-weight: 600;
    color: #007bff;
    background-color: #e3f2fd;
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
}

/* Refresh Controls */
.refresh-controls {
    text-align: center;
    margin: 20px 0;
}

.refresh-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.refresh-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.refresh-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.refresh-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.refresh-note {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    margin-top: 15px;
    padding: 10px;
    background-color: rgba(233, 236, 239, 0.7);
    border-radius: 8px;
}

.file-access-info {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007acc;
}

.file-access-info h3 {
    margin-top: 0;
    color: #333;
}

.file-access-info ul {
    margin: 10px 0;
    padding-left: 20px;
}

.file-access-info li {
    margin: 8px 0;
}

.file-access-info code {
    background-color: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.file-access-info a {
    color: #007acc;
    text-decoration: none;
}

.file-access-info a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .status-grid {
        grid-template-columns: 1fr;
    }

    .service-status-container {
        margin: 20px 10px;
        padding: 15px;
    }

    .countdown-time {
        font-size: 1.1rem;
    }
}
