html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}


/* Верхнее меню */
body {
    font-family: Arial, sans-serif;
}

/* Верхнее меню — шапка на всю ширину */
header {
    width: 100%;       /* растягиваем фон на всю ширину */
    padding: 0;        /* убираем внутренние отступы самого header */
    margin: 0;         /* убираем внешние отступы */
    background-color: #dff3ff; /* фон шапки */
    border-bottom: 2px solid #3498db;
}

/* Контейнер внутри шапки остается прежним */
.header-container {
    max-width: 1200px;   /* фиксированная ширина контента */
    margin: 0 auto;      /* центрирование по экрану */
    padding: 15px 20px;  /* оставляем внутренние отступы контейнера */
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}


.logo {
    font-size: 26px;
    font-weight: bold;
    color: #3498db;
}

.nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.nav-buttons a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-weight: 500;
}

.nav-buttons a:hover {
    background-color: #3498db;
    color: #fff;
}

.user-panel {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-profile-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.user-profile-link:hover {
    text-decoration: underline;
}

.user-avatar {
    width: 48px;      /* фиксируем размер */
    height: 48px;
    border-radius: 50%;   /* делаем круг */
    object-fit: cover;    /* картинка обрезается, если не квадрат */
    border: 1px solid #ccc;
}

.user-greeting {
    color: #bdc3c7;
    font-size: 15px;
}

.logout-button,
.login-button {
    background-color: #e74c3c;
    color: white;
    padding: 8px 14px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.logout-button:hover,
.login-button:hover {
    background-color: #c0392b;
}
/* Верхнее меню */
header {
    background-color: #1e272e;
    padding: 0;
    border-bottom: 3px solid #3498db;
}



.logo {
    font-size: 26px;
    font-weight: bold;
    color: #ecf0f1;
    margin-right: 20px;
}

.nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.nav-buttons a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-weight: 500;
}

.nav-buttons a:hover {
    background-color: #3498db;
    color: #fff;
}

.user-panel {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-greeting {
    color: #bdc3c7;
    font-size: 15px;
}

.logout-button,
.login-button {
    background-color: #e74c3c;
    color: white;
    padding: 8px 14px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.logout-button:hover,
.login-button:hover {
    background-color: #c0392b;
}
/* Голубое верхнее меню */
header {
    background-color: #dff3ff; /* светло-голубой фон */
    padding: 0;
    border-bottom: 2px solid #3498db;
}



.logo {
    font-size: 26px;
    font-weight: bold;
    color: #3498db;
    margin-right: 20px;
}

.nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.nav-buttons a {
    color: #3498db;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-weight: 500;
}

.nav-buttons a:hover {
    background-color: #3498db;
    color: #fff;
}

.user-panel {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-greeting {
    color: #2c3e50;
    font-size: 15px;
}

.logout-button,
.login-button {
    background-color: #3498db;
    color: white;
    padding: 8px 14px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.logout-button:hover,
.login-button:hover {
    background-color: #2c80b4;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th, table td {
    border: 1px solid black;
    padding: 8px;
    text-align: center;
}

table th {
    background-color: #f0f0f0;
}





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

/* Боковая панель */
.sidebar {
    width: 250px;
    background-color: #ffffff;
    padding: 20px;
    margin-right: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar h2 {
    margin-top: 0;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin-bottom: 10px;
}

/* Основная часть */
.main-content {
    flex: 1;
    background-color: #ffffff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.photo-slot {
    padding: 20px;
    border: 2px dashed #ccc;
    text-align: center;
    color: #999;
    margin-top: 10px;
}
.header-buttons {
    display: flex;
    gap: 10px; /* Отступ между кнопками */
}

.main-page-button, .upload-button {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: background-color 0.3s;
}

/* Кнопка загрузки — синий фон */
.upload-button {
    background-color: #3498db;
}

.upload-button:hover {
    background-color: #2980b9;
}

/* Кнопка главной страницы — серо-голубой фон */
.main-page-button {
    background-color: #7f8c8d;
}

.main-page-button:hover {
    background-color: #606c70;
}
.photo-display {
    text-align: center;
    margin-top: 20px;
}

.photo-display img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
}

.photo-caption {
    margin-top: 10px;
    font-style: italic;
    color: #555;
    font-size: 16px;
}
.photo-date-section {
    margin-top: 30px;
}

.photo-date-section h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.photo-gallery {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.photo-gallery a {
    display: block;
    width: calc((100% - 30px) / 3); /* 3 фото в ряд с отступами */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.3s;
}

.photo-gallery a:hover {
    transform: scale(1.05);
}

.photo-gallery img {
    width: 100%;
    height: auto;
    display: block;
}
.show-all {
    text-align: center;
    margin-top: 20px;
}

.show-all .nav-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.show-all .nav-button:hover {
    background-color: #555;
}