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

body {
    font-family: 'Inter', sans-serif;
    background: #FAFAFA;
    color: #222222;
    padding: 20px;
    position: relative;
    line-height: 1.5;
}

.language-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-toggle button {
    padding: 6px 12px;
    background: transparent;
    color: #737373;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
}

.language-toggle button:hover {
    background: #EBEBEB;
    color: #222222;
}

.container {
    max-width: 1200px;
    margin: 40px auto;
}

.content-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.employee-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #FFFFFF;
    padding: 24px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.main-content {
    flex: 1;
    background: #FFFFFF;
    padding: 40px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.form-section {
    margin-bottom: 40px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #222222;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="time"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #E5E5E5;
    border-radius: 3px;
    font-size: 14px;
    color: #222222;
    background: #FFFFFF;
    font-family: 'Inter', sans-serif;
}

.form-group input[type="text"]:focus,
.form-group input[type="time"]:focus {
    outline: none;
    border-color: #222222;
}

.form-group input::placeholder {
    color: #737373;
}

.divider {
    height: 1px;
    background: #E5E5E5;
    margin: 28px 0;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.day-buttons {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.day-button {
    padding: 10px;
    border: 1px solid #E5E5E5;
    background: #FFFFFF;
    color: #222222;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    border-radius: 3px;
    transition: all 0.15s ease;
}

.day-button:hover {
    background: #EBEBEB;
}

.day-button:focus {
    outline: 2px solid #999999;
    outline-offset: 1px;
}

.day-button.selected {
    background: #999999;
    color: #FFFFFF;
    border-color: #999999;
}

.time-slot-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    margin-bottom: 8px;
}

.time-inputs {
    display: flex;
    gap: 12px;
    flex: 1;
}

.time-field {
    flex: 1;
}

.time-field label {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #737373;
    margin-bottom: 4px;
}

.time-field input[type="time"] {
    width: 100%;
}

.icon-button {
    width: 32px;
    height: 32px;
    border: 1px solid #E5E5E5;
    background: #FFFFFF;
    color: #737373;
    cursor: pointer;
    font-size: 18px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.icon-button:hover {
    background: #EBEBEB;
    color: #222222;
}

.remove-button {
    opacity: 0.6;
}

.remove-button:hover {
    opacity: 1;
}

.text-button {
    background: none;
    border: none;
    color: #222222;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
    font-weight: 400;
    text-decoration: none;
}

.text-button:hover {
    text-decoration: underline;
}

.employee-input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.employee-input-row input {
    flex: 1;
}

.employee-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.employee-tag {
    padding: 6px 10px;
    border-radius: 3px;
    font-size: 13px;
    cursor: move;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.employee-tag .remove-btn {
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    opacity: 0.6;
}

.employee-tag .remove-btn:hover {
    opacity: 1;
}

.action-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.copies-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.copies-control label {
    font-size: 13px;
    font-weight: 500;
    color: #222222;
    margin: 0;
}

.or-divider {
    font-size: 13px;
    color: #CCCCCC;
    font-weight: 300;
}

.copies-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stepper {
    display: flex;
    align-items: center;
    border: 1px solid #E5E5E5;
    border-radius: 3px;
    overflow: hidden;
}

.stepper-button {
    width: 32px;
    height: 32px;
    border: none;
    background: #FFFFFF;
    color: #222222;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stepper-button:hover {
    background: #EBEBEB;
}

.stepper input {
    width: 50px;
    border: none;
    border-left: 1px solid #E5E5E5;
    border-right: 1px solid #E5E5E5;
    text-align: center;
    font-size: 14px;
    padding: 0;
    height: 32px;
}

.hint {
    font-size: 12px;
    color: #737373;
    margin-top: 4px;
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.primary-button,
.secondary-button {
    padding: 10px 20px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid;
    transition: all 0.15s ease;
}

.primary-button {
    background: #999999;
    color: #FFFFFF;
    border-color: #999999;
}

.primary-button:hover {
    background: #777777;
    border-color: #777777;
}

.secondary-button {
    background: #FFFFFF;
    color: #222222;
    border-color: #E5E5E5;
}

.secondary-button:hover {
    background: #EBEBEB;
}

.preview-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #E5E5E5;
}

.preview {
    min-height: 200px;
}

.preview p {
    color: #737373;
    text-align: center;
    padding: 40px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #E5E5E5;
    font-size: 13px;
}

.schedule-table th,
.schedule-table td {
    border: 1px solid #E5E5E5;
    padding: 10px;
    text-align: left;
}

.schedule-table th {
    background: #999999;
    color: #FFFFFF;
    font-weight: 500;
    font-size: 12px;
    text-align: center;
}

.schedule-table td:first-child {
    background: #FAFAFA;
    font-weight: 500;
    color: #222222;
    white-space: nowrap;
}

.schedule-cell {
    cursor: pointer;
    min-height: 40px;
    position: relative;
}

.schedule-cell:hover {
    background: #FAFAFA;
}

.cell-employees {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.cell-employee {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cell-employee .remove-cell-btn {
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    opacity: 0.6;
}

.cell-employee .remove-cell-btn:hover {
    opacity: 1;
}

.cell-input {
    width: 100%;
    padding: 6px;
    border: 1px solid #222222;
    border-radius: 3px;
    font-size: 12px;
    margin-top: 4px;
}

.cell-input:focus {
    outline: none;
}

.drop-zone.drag-over {
    background: #EBEBEB;
}

.schedule-wrapper {
    border: 1px solid #E5E5E5;
    padding: 8px;
    margin-bottom: 8px;
    page-break-inside: avoid;
}

@media (max-width: 768px) {
    .content-layout {
        flex-direction: column;
    }
    
    .employee-sidebar {
        width: 100%;
    }
    
    .day-buttons {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .time-inputs {
        flex-direction: column;
    }
    
    .action-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .or-divider {
        text-align: center;
    }
}

@media print {
    body {
        background: #FFFFFF;
        padding: 0;
        margin: 0;
    }
    
    .language-toggle,
    .form-section {
        display: none;
    }
    
    .employee-sidebar {
        display: none;
    }
    
    .container {
        box-shadow: none;
        padding: 0;
        max-width: none;
        margin: 0;
    }
    
    .preview-section {
        border: none;
        padding: 0;
        margin: 0;
    }
    
    .schedule-wrapper {
        border: 1px solid #737373;
        padding: 2mm;
        margin-bottom: 3mm;
        page-break-inside: avoid;
    }
    
    .schedule-table {
        max-width: 100mm;
        table-layout: fixed;
        font-size: 6.5pt;
    }
    
    .schedule-table th:first-child,
    .schedule-table td:first-child {
        width: 18mm;
    }
    
    .schedule-table th:not(:first-child),
    .schedule-table td:not(:first-child) {
        width: 14mm;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 1.5mm;
        font-size: 6.5pt;
        line-height: 1.2;
    }
    
    .schedule-table th {
        font-size: 7pt;
    }
    
    .cell-employee {
        font-size: 6pt;
        padding: 0;
        background: none !important;
        color: #222222 !important;
    }
    
    .cell-employee .remove-cell-btn,
    .employee-tag .remove-btn,
    .cell-input {
        display: none;
    }
}
