* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

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

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 2.5rem;
}

.controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

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

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-success {
    background-color: #27ae60;
    color: white;
}

.btn-success:hover {
    background-color: #229954;
}

.table-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 20px;
    overflow-x: auto;
}

#weekTable {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

#weekTable th {
    background-color: #34495e;
    color: white;
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    border-right: 1px solid #2c3e50;
}

#weekTable th:last-child {
    border-right: none;
}

#weekTable td {
    padding: 15px 10px;
    border: 1px solid #ecf0f1;
    min-height: 50px;
    vertical-align: top;
}

.row-header {
    background-color: #2c3e50 !important;
    min-width: 120px;
}

.row-label {
    background-color: #ecf0f1;
    font-weight: 600;
    color: #2c3e50;
    min-width: 120px;
}

.editable-cell {
    min-width: 100px;
    background-color: #fff;
}

.editable-cell:focus,
.row-label:focus {
    outline: 2px solid #3498db;
    background-color: #f8f9fa;
}

.editable-cell:empty:before,
.row-label:empty:before {
    content: attr(placeholder);
    color: #bdc3c7;
    font-style: italic;
}

.pdf-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.pdf-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.pdf-options label:hover {
    background-color: #e8f4f8;
}

.pdf-options input[type="radio"] {
    transform: scale(1.2);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        margin-bottom: 10px;
    }
    
    .table-container {
        margin: 0 -15px 20px -15px;
        border-radius: 0;
    }
    
    #weekTable {
        font-size: 14px;
    }
    
    #weekTable th,
    #weekTable td {
        padding: 10px 8px;
    }
    
    .row-label {
        min-width: 100px;
    }
    
    .editable-cell {
        min-width: 80px;
    }
    
    .pdf-options {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
    
    #weekTable {
        font-size: 12px;
    }
    
    #weekTable th,
    #weekTable td {
        padding: 8px 6px;
    }
    
    .btn {
        font-size: 14px;
        padding: 10px 20px;
    }
}

/* Print styles for when viewing the table */
@media print {
    body {
        background-color: white;
    }
    
    .controls,
    .pdf-options {
        display: none;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .table-container {
        box-shadow: none;
        border: 1px solid #000;
    }
}