.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 20px;
}

.admin-menu-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    text-align: center;
}

.admin-menu-item:active {
    transform: scale(0.95);
}

.admin-menu-item img {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.icon-btn {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.icon-btn:active {
    transform: scale(0.9);
    background: var(--primary);
}

.btn-success {
    background: #10b981 !important;
    color: white !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4) !important;
    border: none !important;
}

.btn-success:active {
    transform: scale(0.95);
    opacity: 0.9;
}

.admin-item-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.item-text {
    flex: 1;
}

.item-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
}

.item-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.item-icon-small {
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    background: var(--glass);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.item-actions {
    display: flex;
    gap: 8px;
}

.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    padding: 15px;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid var(--glass-border);
}

.cal-nav-btns {
    display: flex;
    gap: 10px;
}

.calendar-week-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 10px;
}

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

.calendar-day {
    aspect-ratio: 1;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.calendar-day:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.05);
}

.calendar-day.not-current {
    opacity: 0.2;
}

.calendar-day.disabled {
    opacity: 0.3;
    filter: grayscale(1);
    pointer-events: none;
}

.calendar-day.today {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.day-indicators {
    display: flex;
    gap: 3px;
    margin-top: 4px;
}

.dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
}

.dot.free {
    background-color: var(--success);
    box-shadow: 0 0 5px var(--success);
}

.dot.busy {
    background-color: var(--danger);
    box-shadow: 0 0 5px var(--danger);
}

.manage-time-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.manage-time-item {
    padding: 12px 8px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--glass-border);
    position: relative;
}

.manage-time-item.free {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.manage-time-item.busy {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.manage-time-item.past {
    opacity: 0.5;
    filter: grayscale(1);
}

.time-input {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px 15px;
    color: var(--text-main);
    font-family: inherit;
}

.delete-slot-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 2px solid #1e293b;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.admin-tab-nav {
    display: flex;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 14px;
    padding: 4px;
    border: 1px solid var(--glass-border);
}

.tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.settings-group-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 15px;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.setting-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.setting-item:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.05);
}

.setting-item span {
    font-weight: 500;
}

.chevron {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border: 1px solid var(--glass-border);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--primary);
}

input:checked+.slider:before {
    transform: translateX(20px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

.tg-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.tg-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.tg-modal-card {
    background: var(--tg-theme-bg-color, #ffffff);
    color: var(--tg-theme-text-color, #000000);
    border-radius: 16px;
    padding: 24px;
    width: 85%;
    max-width: 320px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: transform 0.2s ease;
}

.tg-modal-overlay.active .tg-modal-card {
    transform: scale(1);
}

.tg-modal-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.tg-modal-message {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 20px;
    line-height: 1.45;
}

.tg-modal-buttons {
    display: flex;
    gap: 10px;
}

.tg-modal-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
}

.tg-modal-btn:active {
    transform: scale(0.98);
    opacity: 0.85;
}

.tg-modal-btn.cancel {
    background: var(--tg-theme-secondary-bg-color, #f0f0f0);
    color: var(--tg-theme-text-color, #000);
}

.tg-modal-btn.confirm {
    background: var(--tg-theme-button-color, #2481cc);
    color: var(--tg-theme-button-text-color, #fff);
}

.tg-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tg-theme-button-color, #2481cc);
    color: var(--tg-theme-button-text-color, #fff);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    max-width: 85vw;
    text-align: center;
    transition: all 0.2s ease;
}

.tg-toast.error {
    background: var(--tg-theme-destructive-text-color, #e53935);
}