body {
    font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    background-color: #121212;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    background-image: linear-gradient(45deg, #121212 25%, transparent 25%),
                      linear-gradient(-45deg, #121212 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, #121212 75%),
                      linear-gradient(-45deg, transparent 75%, #121212 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


/* POPUP */


#subscribePopup {
  margin-top: 40px;
  display: none;
}

#subscribeBtn {
  margin-top: 0px;
}
.login-container {

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 20px;
}

.login-container h1 {
    margin-bottom: 20px;
    font-size: 24px;
}

.login-container form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 300px;
}

.login-container input {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #333;
    border: 1px solid #555;
    color: #e0e0e0;
    font-size: 16px;
    border-radius: 10px;
}

.login-container button {
    padding: 10px;
    background-color: #555;
    border: 2px solid #1e90ff;
    color: #e0e0e0;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 0 10px #1e90ff;
    border-radius: 10px;
}

.user-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
}

.logout-btn-mobile {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
}

.logout-btn-mobile .icon {
    width: 18px;
    height: 18px;
    filter: invert(1);
}

.logout-btn-mobile span {
    color: #e0e0e0;
    font-size: 16px;
}

.stats-cards {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background-color: #1e1e1e;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    border-radius: 15px;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid #555;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #1e90ff;
    margin-bottom: 10px;
}

.stat-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #e0e0e0;
}

.stat-icon {
    margin-right: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.stat-icon .icon {
    width: 20px;
    height: 20px;
    filter: invert(0.5) sepia(1) saturate(5) hue-rotate(180deg) brightness(1.2);
}

.stat-label {
    font-size: 14px;
    color: #b0b0b0;
}

.toggle-filters-btn {
    display: none;
    padding: 10px;
    background-color: #555;
    border: 2px solid #1e90ff;
    color: #e0e0e0;
    cursor: pointer;
    font-size: 16px;
    border-radius: 10px;
    box-shadow: 0 0 10px #1e90ff;
    margin-bottom: 10px;
}

.add-request-btn-mobile {
    display: none;
    padding: 10px;
    background-color: #555;
    border: 2px solid #1e90ff;
    color: #e0e0e0;
    cursor: pointer;
    font-size: 16px;
    border-radius: 10px;
    box-shadow: 0 0 10px #1e90ff;
    margin-bottom: 10px;
}

.mobile-controls {
    display: none;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.filters-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.filters-modal-content {
    background-color: #1e1e1e;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
}

.close-filters {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 15px;
}

.close-filters:hover {
    color: #fff;
}

.filters-modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filters input, .filters select {
    padding: 10px;
    background-color: #333;
    border: 1px solid #555;
    color: #e0e0e0;
    font-size: 16px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.filters select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: none;
}

.filters button {
    padding: 10px;
    background-color: #555;
    border: 2px solid #1e90ff;
    color: #e0e0e0;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 0 10px #1e90ff;
    border-radius: 10px;
}

.requests-list {
    padding: 20px;
    flex: 1;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    padding: 10px;
    background-color: #1e1e1e;
    width: 100%;
    box-sizing: border-box;
}

footer button {
    padding: 10px;
    background-color: #555;
    border: 2px solid #1e90ff;
    color: #e0e0e0;
    cursor: pointer;
    font-size: 16px;
    border-radius: 10px;
    box-shadow: 0 0 10px #1e90ff;
}

.request-item {
    background-color: #1e1e1e;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.sidebar a {
    color: #fff;
    text-decoration: none;
}

#view-modal {
    display: none;
}

.modal-content {
    background-color: #1e1e1e;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Секции информации в модальном окне */
.info-section {
    background-color: #2a2a2a;
    border: 1px solid #555;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.info-section h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 16px;
    border-bottom: 1px solid #555;
    padding-bottom: 5px;
}

.info-section p {
    margin: 8px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #fff;
}

.modal form {
    display: flex;
    flex-direction: column;
}

.modal input, .modal textarea, .modal select {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #333;
    border: 1px solid #555;
    color: #e0e0e0;
    font-size: 16px;
    border-radius: 10px;
}

.modal textarea {
    resize: none;
}

.modal button {
    padding: 10px;
    background-color: #555;
    border: 2px solid #1e90ff;
    color: #e0e0e0;
    cursor: pointer;
    font-size: 16px;
    border-radius: 10px;
    box-shadow: 0 0 10px #1e90ff;
    margin-top: 20px;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #1e1e1e;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination select {
    padding: 10px;
    background-color: #333;
    border: 1px solid #555;
    color: #e0e0e0;
    font-size: 16px;
    border-radius: 10px;
    margin-right: 20px;
}

.pagination button {
    padding: 10px 15px;
    margin: 0 5px;
    background-color: #555;
    border: 2px solid #1e90ff;
    color: #e0e0e0;
    cursor: pointer;
    font-size: 16px;
    border-radius: 10px;
    box-shadow: 0 0 10px #1e90ff;
}

.pagination button.active {
    background-color: #1e90ff;
    color: #121212;
}

.pagination button:disabled {
    background-color: #333;
    border-color: #555;
    cursor: not-allowed;
    box-shadow: none;
}

/* Sidebar для десктопа */
.sidebar {
    width: 200px;
    background-color: #1e1e1e;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 20px 0;
    box-sizing: border-box;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    border-left: 4px solid transparent;
}

.sidebar-item:hover {
    background-color: #333;
}

.sidebar-item.active {
    background-color: transparent;
    border-left-color: transparent;
}

.sidebar-item.active .icon {
    filter: invert(0.5) sepia(1) saturate(5) hue-rotate(180deg) brightness(1.2);
}

.sidebar-item .icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    filter: invert(1);
}

.sidebar-item .label {
    font-size: 16px;
}

/* Основной контент */
.main-content {
    margin-left: 200px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}



/* Раздел Пользователь */
.user-info {
    padding: 20px;
    background-color: #1e1e1e;
    margin: 20px;
    border-radius: 10px;
}

.user-field {
    margin-bottom: 15px;
}

.user-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.user-field input {
    max-width: 800px;
    padding: 10px;
    background-color: #333;
    border: 1px solid #555;
    color: #e0e0e0;
    font-size: 16px;
    border-radius: 10px;
    box-sizing: border-box;
}

.user-info button {
    padding: 10px 20px;
    background-color: #555;
    border: 2px solid #1e90ff;
    color: #e0e0e0;
    cursor: pointer;
    font-size: 16px;
    border-radius: 10px;
    box-shadow: 0 0 10px #1e90ff;
    margin-right: 10px;
    margin-top: 20px;
}

/* Мобильная навигация */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1e1e1e;
    padding-bottom: 20px;
    box-sizing: border-box;
    z-index: 1000;
}

.mobile-nav-item {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.mobile-nav-item.active {
    background-color: transparent;
}

.mobile-nav-item.active .icon {
    filter: invert(0.5) sepia(1) saturate(5) hue-rotate(180deg) brightness(1.2);
}

.mobile-nav-item .icon {
    width: 24px;
    height: 24px;
    filter: invert(1);
}

/* Стили для кнопки выхода в десктопе */
#logout {
    padding: 10px;
    background-color: #555;
    border: 2px solid #1e90ff;
    color: #e0e0e0;
    cursor: pointer;
    font-size: 16px;
    border-radius: 10px;
    box-shadow: 0 0 10px #1e90ff;
    width: calc(100% - 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

#logout:hover {
    background-color: #666;
}

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s, transform 0.3s;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: 20px 0;
}

.page-link {
    padding: 6px 12px;
    background: #eee;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.page-link.active {
    background: #007bff;
    color: #fff;
    font-weight: bold;
}
