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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.page-wrapper {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.container {
    flex: 1;
    max-width: 800px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.sidebar {
    width: 300px;
    min-width: 280px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 20px;
    flex-shrink: 0;
}

.sidebar h3 {
    font-size: 16px;
    font-weight: 400;
    color: #212121;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.session-status-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.session-status-item:last-child {
    border-bottom: none;
}

.session-date-label {
    font-weight: 500;
    color: #212121;
    margin-bottom: 4px;
}

.session-department {
    color: #666;
    font-size: 13px;
}

.session-department.empty {
    color: #999;
    font-style: italic;
}

header {
    background: white;
    color: #333;
    padding: 30px 40px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

header h1 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 8px;
    line-height: 1.4;
    color: #212121;
}

.subtitle {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

main {
    padding: 30px 40px;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 400;
    color: #212121;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 2px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    font-family: inherit;
    background: white;
}

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

.form-group textarea {
    resize: vertical;
}

.calendar-container {
    margin-top: 10px;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 8px 0;
}

.calendar-nav button {
    background: none;
    border: 1px solid #d0d0d0;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #212121;
    border-radius: 2px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.calendar-nav button:hover {
    background: #f5f5f5;
    border-color: #a9113c;
}

.calendar-nav button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.calendar-month {
    font-size: 16px;
    font-weight: 400;
    color: #212121;
}

.calendar {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #fafafa;
    border-bottom: 1px solid #e0e0e0;
}

.calendar-header-cell {
    padding: 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
}

.calendar-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
    aspect-ratio: 1;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #999;
    background: white;
    cursor: default;
}

.calendar-day.available {
    color: #212121;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.calendar-day.available:hover {
    background: #f5f5f5;
}

.calendar-day.selected {
    background: #a9113c;
    color: white;
    font-weight: 500;
}

.calendar-day.selected:hover {
    background: #8b0e30;
}

.calendar-day.booked {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
    text-decoration: line-through;
}

.calendar-day.booked:hover {
    background: #e0e0e0;
    cursor: not-allowed;
}

.help-text {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
    font-style: normal;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: #a9113c;
    color: white;
    border: none;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #8b0e30;
}

.submit-btn:active {
    background: #7a0c28;
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #a9113c;
}

.message {
    padding: 12px 16px;
    border-radius: 2px;
    margin-top: 16px;
    text-align: left;
    font-weight: 400;
    font-size: 14px;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border-left: 3px solid #28a745;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 3px solid #dc3545;
}

footer {
    background: #fafafa;
    padding: 16px 40px;
    text-align: left;
    color: #666;
    font-size: 12px;
    border-top: 1px solid #e0e0e0;
}

@media (max-width: 1024px) {
    .page-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .sidebar {
        width: 100%;
        position: static;
        order: -1;
    }

    .container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .page-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .sidebar {
        width: 100%;
        position: static;
        order: -1;
        padding: 16px;
    }

    .container {
        max-width: 100%;
    }

    header {
        padding: 24px 20px;
    }

    header h1 {
        font-size: 20px;
    }

    main {
        padding: 24px 20px;
    }

    .calendar-nav {
        flex-wrap: wrap;
        gap: 8px;
    }

    .calendar-month {
        width: 100%;
        text-align: center;
        margin: 8px 0;
    }

    footer {
        padding: 16px 20px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group textarea {
        font-size: 16px; /* iOS zoom'u önlemek için */
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }

    .sidebar {
        padding: 12px;
    }

    .sidebar h3 {
        font-size: 14px;
    }

    .session-status-item {
        padding: 10px 0;
        font-size: 13px;
    }

    header {
        padding: 20px 15px;
    }

    header h1 {
        font-size: 18px;
        line-height: 1.3;
    }

    .subtitle {
        font-size: 13px;
    }

    main {
        padding: 20px 15px;
    }

    .calendar {
        font-size: 12px;
    }

    .calendar-day {
        font-size: 13px;
    }
}

