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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    font-weight: 600;
}

.form-section,
.table-section {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    border: 1px solid #e1e8ed;
    overflow-x: auto;
}

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

label {
    display: block;
    margin: 8px 0 5px;
    font-weight: 600;
    color: #2c3e50;
}

select,
input[type="time"] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 10px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

select:focus,
input[type="time"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.days-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.days-checkboxes label {
    display: flex;
    align-items: center;
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

.days-checkboxes input[type="checkbox"] {
    margin-right: 6px;
    transform: scale(1.1);
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.btn-warning {
    background: #f39c12;
    color: white;
}

.btn-warning:hover {
    background: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.btn-mute-on, .btn-mute-off {
    color: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-mute-on:hover, .btn-mute-off:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-mute-on { background: #2ecc71; }

.btn-mute-off { background: #e74c3c; }

.btn-footer {
    width: 200px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.btn-fb {
    background: #3498db; /* тёплый синий */
    color: white;
    border: none;
    padding: 0.5em 1em;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s ease;
}

.btn-fb:hover {
    background: #2980b9; /* чуть темнее при наведении */
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    min-width: 600px;
}

th, td {
    padding: 12px 15px;
    border-bottom: 1px solid #e1e8ed;
    text-align: left;
}

th {
    background: #34495e;
    color: white;
    font-weight: 600;
}

tr:hover {
    background: #f8f9fa;
}

tr:last-child td {
    border-bottom: none;
}

.file-cell {
    max-width: 300px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.time-cell {
    white-space: nowrap;
    width: 80px;
}

.days-cell {
    white-space: nowrap;
    width: 120px;
}

.action-cell {
    width: 100px;
}

.action-buttons {
    margin-top: 25px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.action-buttons form {
    margin: 0;
}

.action-buttons button {
    min-width: 180px;
    text-align: center;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
    font-style: italic;
}

.footer-wrapper {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

.my-copyright {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    font-size: 14px;
    color: #7f8c8d;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.my-copyright a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.my-copyright a:hover {
    color: #1d6fa5;
    text-decoration: underline;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    z-index: 1000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 300px;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.success {
    background: #2ecc71;
}

.notification.error {
    background: #e74c3c;
}

.notification.warning {
    background: #f39c12;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-help {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: #666;
}

.smb-link {
    color: #3498db;
    text-decoration: underline;
    cursor: pointer;
}
.smb-link:hover {
    color: #1d6fa5;
}

.fb-link {
    color: #3498db;
    text-decoration: underline;
    cursor: pointer;
}
.fb-link:hover {
    color: #1d6fa5;
}

.volume-group {
  width: 100%;
  max-width: 600px;
  margin: 10px 0;
}

#.volume-slider {
#  width: 100%;
#  height: 12px;
#  border-radius: 6px;
#  background: linear-gradient(to right, #6c9 0%, #fc9 70%, #f66 100%);
#  -webkit-appearance: none;
#}

.volume-slider {
  width: 100%;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(
    to right,
    #6fbf73 0%,     /* мягкий зелёный */
    #6fbf73 70%,
    #f6d365 85%,    /* тёплый жёлтый */
    #e57373 100%    /* приглушённый красный */
  );
  -webkit-appearance: none;
  appearance: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: #444;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #666;
}

.volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #444;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #666;
}

.volume-wrapper {
    display: flex;
    justify-content: center; /* центр по горизонтали */
    align-items: center;     /* центр по вертикали внутри блока */
    margin: 20px 0;
    width: 100%;
}

.volume-group {
    width: 100%;
    max-width: 600px;
}

.server-uptime {
    text-align: center;
    margin-top: 15px;
    color: #555;
    font-size: 14px;
}

/* --- Login Page Styles --- */
.login-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-top: 40px;
    margin-bottom: 20px;
}

.login-container {
    max-width: 400px;
    margin: 60px auto;
    padding: 30px 25px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    text-align: center;
}

.login-container h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    font-weight: 600;
    color: #2c3e50;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-form label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    padding: 10px 12px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.login-form button {
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: #3498db;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-form button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.login-error {
    color: #e74c3c;
    font-size: 13px;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin: 10px;
    }
    .days-checkboxes {
        gap: 8px;
    }
    .action-buttons {
        flex-direction: column;
    }
    .btn {
        width: 100%;
    }
}
