/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    border: 2px solid #d4af37;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(212, 175, 55, 0.1) 50%, transparent 70%);
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    color: #d4af37;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.header h1 i {
    margin-right: 15px;
    color: #ffd700;
}

.subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 15px;
}

.current-date {
    font-size: 1.1rem;
    color: #d4af37;
    font-weight: 600;
    background: rgba(212, 175, 55, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    border: 1px solid #d4af37;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    background: #2d2d2d;
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #cccccc;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.tab-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #d4af37, #ffd700);
    color: #000000;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.tab-btn i {
    margin-right: 8px;
}

/* Main Content */
.main-content {
    background: #2d2d2d;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid #444444;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Progress Bar */
.progress-bar {
    background: #1a1a1a;
    border-radius: 25px;
    height: 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border: 2px solid #444444;
}

.progress-fill {
    background: linear-gradient(90deg, #d4af37, #ffd700);
    height: 100%;
    border-radius: 25px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Checklist Sections */
.checklist-section {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #444444;
    transition: all 0.3s ease;
}

.checklist-section:hover {
    border-color: #d4af37;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.checklist-section h2 {
    color: #d4af37;
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #444444;
    font-weight: 600;
}

.checklist-section h2 i {
    margin-right: 10px;
    color: #ffd700;
}

.checklist-items {
    display: grid;
    gap: 15px;
}

/* Custom Checkbox */
.checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
}

.checkbox-item:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: #d4af37;
    transform: translateX(5px);
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid #666666;
    border-radius: 6px;
    margin-right: 15px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, #d4af37, #ffd700);
    border-color: #d4af37;
}

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

.item-text {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.4;
}

.checkbox-item input[type="checkbox"]:checked ~ .item-text {
    color: #d4af37;
    font-weight: 500;
}

/* Log Section */
.log-section {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    border: 2px solid #d4af37;
}

.log-section h2 {
    color: #d4af37;
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.log-form {
    display: grid;
    gap: 20px;
}

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

.form-group label {
    color: #d4af37;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    background: #2d2d2d;
    border: 2px solid #444444;
    border-radius: 8px;
    padding: 12px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

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

.form-group small {
    color: #999999;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 150px;
    justify-content: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #d4af37, #ffd700);
    color: #000000;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
}

.btn-secondary {
    background: #666666;
    color: #ffffff;
}

.btn-secondary:hover {
    background: #777777;
}

.btn-warning {
    background: #25d366;
    color: #ffffff;
}

.btn-warning:hover {
    background: #20b858;
}

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

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

/* Logs Container */
.logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.logs-header h2 {
    color: #d4af37;
    font-size: 1.4rem;
    font-weight: 600;
}

.logs-controls {
    display: flex;
    gap: 10px;
}

.logs-container {
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #444444;
    border-radius: 10px;
    background: #1a1a1a;
}

.log-entry {
    background: #2d2d2d;
    border-bottom: 1px solid #444444;
    padding: 20px;
    transition: all 0.3s ease;
}

.log-entry:hover {
    background: #333333;
}

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

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

.log-date {
    color: #d4af37;
    font-weight: 600;
    font-size: 1.1rem;
}

.log-responsible {
    color: #cccccc;
    background: #444444;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
}

.log-progress {
    color: #ffd700;
    font-weight: 600;
}

.log-details {
    display: grid;
    gap: 10px;
}

.log-detail {
    color: #cccccc;
    line-height: 1.5;
}

.log-detail strong {
    color: #d4af37;
}

/* Settings Section */
.settings-section {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid #444444;
}

.settings-section h2 {
    color: #d4af37;
    font-size: 1.4rem;
    margin-bottom: 25px;
    font-weight: 600;
}

/* Footer */
.footer {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    border: 1px solid #444444;
}

.footer p {
    color: #cccccc;
    margin-bottom: 15px;
}

.emergency-notice {
    background: linear-gradient(135deg, #dc3545, #ff4757);
    color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.emergency-notice i {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .nav-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .logs-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .logs-controls {
        justify-content: center;
    }
    
    .log-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .emergency-notice {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .checklist-section {
        padding: 20px;
    }
    
    .checkbox-item {
        padding: 10px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffd700;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #444444;
    border-radius: 50%;
    border-top-color: #d4af37;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success/Error Messages */
.message {
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.message.success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    color: #28a745;
}

.message.error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #dc3545;
}

.message.warning {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid #ffc107;
    color: #ffc107;
}

