html, body {
	overflow-x:hidden;
	transition: background-color 0.3s ease;
	}
strong {
		font-size: 20px;
	}


:root {
    --body-background: #121212;
    --background: white;
    --button-background: white;
    --color-text: #333;
    --hover: #f9f9f9;
}

@media (prefers-color-scheme: dark) {
:root   {
    --body-background: #121212;
    --background: #1E1E1E;
    --button-background: #2D2D2D;
    --color-text: #EAEAEA;
    --hover: #3A3A3A;
}
}
body.light {
    --body-background: #121212;
    --background: white;
    --button-background: white;
    --color-text: #333;
    --hover: #f9f9f9;

}
body.dark {
    --body-background: #121212;
    --background: #1E1E1E;
    --button-background: #2D2D2D;
    --color-text: #EAEAEA;
    --hover: #3A3A3A;
}

    .switch {
      position: fixed;
      top: 20px;
      right: 20px;
      width: 70px;
      height: 35px;
      background: var(--accent-color);
      border-radius: 35px;
      cursor: pointer;
      overflow: hidden;
      display: flex;
      align-items: center;
      padding: 3px;
      transition: background 0.5s;
    }

    .circle {
      width: 29px;
      height: 29px;
      background: yellow;
      border-radius: 50%;
      transition: transform 0.5s, background 0.5s, box-shadow 0.5s;
      box-shadow: 0 0 10px yellow;
    }

    body.dark .circle {
      transform: translateX(35px);
      background: #f1f1f1;
      box-shadow: 0 0 15px #aaa;
    }


    table {
	    display:table;
        border-collapse: separate;
        border-spacing: 0;
        background-color: var(--background);
        border: 1px solid #ddd;
        border-radius: 8px;
	    min-width: 500px;
	    max-width: 60%;
	    min-height: 100%;
	    margin-left: auto;
	    margin-right: auto;
        }
	.table-wrapper {
		overflow-x:auto;
		display:block;
	}
	.table-wrapper table {
		display: table;
	}
	.table-wrapper tr {
		display: table-row;
	}
	.table-wrapper th,td {
		display: table-cell;
	}
        th, td {
            padding: 8px 10px;
            text-align: center;
            border-right: 1px solid #eee;
            border-bottom: 1px solid #eee;
            color: var(--color-text);
            white-space: nowrap;
        }

        th,td:hover {
            background-color: var(--hover);
        }

        th {
            background-color: #f5f5f5;
            font-weight: 500;
        }

        tr:hover td {
            background-color: var(--hover);
        }

        /* Убираем правую границу у последней ячейки в строке */
        th:last-child,
        td:last-child {
            border-right: none;
        }

        /* Закругляем углы у первой и последней ячеек в заголовке */
        thead tr:first-child th:first-child {
            border-top-left-radius: 7px;
        }
        thead tr:first-child th:last-child {
            border-top-right-radius: 7px;
        }

        /* Закругляем углы у последней строки */
        tbody tr:last-child td:first-child {
            border-bottom-left-radius: 7px;
        }
        tbody tr:last-child td:last-child {
            border-bottom-right-radius: 7px;
        }
p {
    text-align: center;
	font-size: 1em;
}
body {
	text-align: center;
	margin: 0;
	display: grid;
	grid-auto-rows: min-content;
	background: var(--background);
    color: var(--color-text);
}

h1 {
	font-size: 1.6em;
	border-bottom: 1px solid #ddd;
	padding-bottom: 8px;
	margin-bottom: 12px;
}

label {
	font-size: 1.5em;
}
.link {
        color: var(--color-text);
        text-decoration: none;
        font-size: 24px;
        font-weight: 500;
        padding: 12px 24px;
        border: 1px solid #bbb;
        border-radius: 6px;
        background-color: var(--button-background);
        transition: all 0.2s ease;
        display: inline-block;
	    margin: 24px auto;
	    width: 100%;
	    max-width: 125px;

        }
        
        .link:hover {
            border-color: #4A6BFF;
            background-color: var(--hover);
        }
        
        .link:active {
            background: #4A6BFF;
            border-color: #4A6BFF;
            color: var(--color-text);
        }

.input-container {
            position: relative;
            width: 100%;
            max-width: 450px;
	    margin: 24px auto;
	    display: flex;
        }
.input-container span {
	display: flex;
}
.input-container input {
	flex: 1;
	display: flex;
}
.input-container button {
	border-radius: 0px 8px 8px 0px;
	display: flex;
	height: 53px;
	cursor: pointer;
}	
        .input-label {
            position: absolute;
            top: 16px;
            left: 10px;
	    margin: auto;
            background-color: var(--background);
            padding: 0 5px;
            font-size: 14px;
            color: var(--color-text);
            z-index: 1;
        }
        
        .input-field {
            width: 100%;
	    height: 53px;
            padding: 15px;
	    margin:auto;
            border: 2px solid #e0e0e0;
            border-radius: 8px 0px 0px 8px;
            font-size: 16px;
            color: var(--color-text);
            background-color: var(--background);
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
            box-sizing: border-box;
        }
        
        .input-field:focus {
            outline: none;
            border-color: #80bdff;
            box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
        }
        
        .input-field:hover {
            border-color: #adb5bd;
        }
        
        /* Контейнер для центрирования */
        .container {
            display: flex;
	    flex-flow: row wrap;
	    margin: auto;
	    max-width: 800px;
            justify-content: space-between;
	    align-content: space-between;
            align-items: center;
            font-family: 'Roboto', Arial, sans-serif;
	    padding: 24px;
	    min-width: 50%;
        }
	.flex-container {
            display: none;
	    flex-flow: row wrap;
	    margin: auto;
	    max-width: 800px;
            justify-content: space-between;
	    align-content: space-between;
            align-items: center;
            font-family: 'Roboto', Arial, sans-serif;
	    padding: 24px;
	    min-width: 50%;
	}
	.month-button {
                font-size: 1.6em;
                border-bottom: 1px solid #ddd;
                padding-bottom: 8px;
                margin-bottom: 12px;
                text-decoration: none;
		justify-content: center;
		color: var(--color-text);
		font-weight: 900;
        }
        /* Базовая кнопка */
        .date-button {
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 20%;
            height: 72px;
            padding: 8px;
	    	margin: 8px;
            border-radius: 12px;
            border: 1px solid #E0E0E0;
            background: var(--button-background);
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
            color: var(--color-text);
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
@media (max-width: 480px) {
	.date-button {
		width: 35%
	}
}
	.current {
		
	}
        /* Состояние при наведении */
        .date-button:hover {
            background: var(--hover);
            border-color: #4A6BFF;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(74,107,255,0.1);
        }

        /* Активное состояние */
        .date-button.active {
            background: #4A6BFF;
            border-color: #4A6BFF;
            color: var(--color-text);
            box-shadow: 0 4px 12px rgba(74,107,255,0.2);
        }

        /* Текст дня недели */
        .date-button .day-of-week {
            font-size: 12px;
            font-weight: 300;
            margin-bottom: 4px;
            text-transform: uppercase;
        }

        /* Число */
        .date-button .day-number {
            font-size: 20px;
            font-weight: 500;
            margin-bottom: 2px;
        }

        /* Месяц */
        .date-button .month {
            font-size: 12px;
            font-weight: 400;
            opacity: 0.8;
        }

        /* Упрощенная версия без месяца */
        .date-button.simple {
            height: 60px;
        }
        .date-button.simple .month {
            display: none;
        }

