* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

/* ===== TOAST NOTIFICATIONS ===== */

.toast-container {
    position: fixed;
    right: 20px;
    bottom: 20px; /* можно заменить на top: 20px */
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999999998;
}

.toast {
    min-width: 220px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(0,0,0,0.85);
    color: #fff;
    font-size: 14px;

    opacity: 0;
    transform: translateX(50px);
    transition: 0.3s ease;

    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

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

/* типы */

.toast-success {
    background: #4caf50;
}

.toast-error {
    background: #e53935;
}

.toast-warning {
    background: #ff9800;
}

.confirm-overlay {
position: fixed;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    background: #8888882e;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: 0.3s ease;
    z-index: 9999;
}
.confirm-overlay.active{
    opacity: 1;
    visibility: visible;
}

.confirm-modal {
    background: white;
    padding: 25px;
    border-radius: 12px;
    width: 320px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: fadeIn 0.2s ease;
}

.confirm-text {
    margin-bottom: 20px;
    font-size: 15px;
}

.confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.confirm-actions button {
    padding: 8px 14px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
        transition: 0.5s;
}

.confirm-cancel {
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    border: none;
    padding: 10px 22px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.confirm-ok {
    background: brown;
    color: white;

}

.confirm-cancel:hover{
    background-color: white;
    color: #333;
}

.confirm-ok:hover{
    background-color: #ff4d4f;
    color: white;
}

.modal-overlay-pro {
    position: fixed;
    inset: 0;
    background: #8888882e;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);

    opacity: 0;
    visibility: hidden;

    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
}

.modal-overlay-pro.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    width: 420px;
    padding: 32px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8);
}


.modal-title-pro {
        text-align: center;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.modal-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 18px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    font-size: 14px;
    transition: 0.2s;
        background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}

.modal-input:focus {
    outline: 1px solid #e2c79a;
}
    

.btn-cancel {
    background: #f0f0f0;
}

.btn-cancel:hover {
    background: #e2e2e2;
}

.btn-confirm {
    background: #4096ff;
    color: white;
}

.btn-confirm:hover {
    background: #1677ff;
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/**/

.bg-gradient {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding-top: 40px;
    background: radial-gradient(circle at center, #ffffff 0%, #f5f5f2 35%, #d1d1d1db 60%, #aaa 100%);
}

body {
    background: #d8d8d8;
    color: #111;
}

/* Верхняя панель */
.top-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    padding: 20px 40px;
}

/* ===== AUTH BUTTON ===== */

.top-right {
    justify-self: end;
}

.auth-wrapper {
    position: relative;
}

.auth-dropdown {
    position: absolute;
    right: 0;
    top: 40px;
    /*background: #1e1e1e;*/
    border-radius: 8px;
    padding: 8px;
}

.hidden {
    display: none;
}


.auth-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #111;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
}

.auth-btn:hover {
    background: #111;
    color: #fff;
    transform: scale(1.05);
}

.auth-btn svg {
    width: 20px;
    height: 20px;
}

.logout-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    

    padding: 10px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);

    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);

    color: #fff;
    cursor: pointer;
    overflow: hidden;

    transition: 0.3s ease;
}

/* icon */
.logout-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;
    border-radius: 12px;

    background: linear-gradient(135deg,#d8b98a,#c6a676);
    color: #111;

    transition: 0.3s ease;
}

.logout-icon svg {
    width: 16px;
    height: 16px;
}

/* text animation */
.logout-text {
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;

    transform: translateX(-25px);
    opacity: 0;
    filter: blur(6px);

    transition: 0.35s cubic-bezier(.2,.8,.2,1);
}

/* hover effects */
.logout-btn:hover {
    background: rgba(255,80,80,0.08);
    border-color: rgba(255,80,80,0.3);
    box-shadow: 0 10px 25px rgba(255,80,80,0.2);
    transform: translateY(-2px);
}

.logout-btn:hover .logout-text {
    transform: translateX(0);
    opacity: 1;
    filter: blur(0);
}

.logout-btn:hover .logout-icon {
    background: #111;
    color: #fff;
}

/* click micro scale */
.logout-btn:active {
    transform: scale(0.95);
}

/* ripple */
.logout-ripple {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: radial-gradient(circle at center, rgba(255,255,255,0.4) 0%, transparent 70%);
    opacity: 0;
    transition: 0.4s ease;
}

.logout-btn:active .logout-ripple {
    opacity: 1;
}

/* shake animation */
@keyframes logoutShake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    50% { transform: translateX(2px); }
    75% { transform: translateX(-1px); }
    100% { transform: translateX(0); }
}

.logout-btn.shake {
    animation: logoutShake 0.3s ease;
}


/* ===== AUTH MODAL ===== */

.auth-modal {
    width: 400px;
}

.auth-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    background: rgba(0,0,0,0.8);
    padding: 4px;
    border-radius: 30px;
}

.auth-tab {
    flex: 1;
    padding: 8px;
    border-radius: 30px;
    border: none;
    background: transparent;
    color: #aaa;
    cursor: pointer;
    font-size: 13px;
    transition: 0.3s;
}

.auth-tab.active {
    background: #e8e8e4;
    color: #111;
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 14px;
    animation: fadeIn 0.25s ease;
}

.auth-form.active {
    display: flex;
}

.input-group input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.5);
    outline: none;
    font-size: 13px;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: #d8b98a;
}

.full-btn {
    width: 100%;
    margin-top: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/**/

.logo {
    font-weight: 600;
    font-size: 16px;
}

.top-center {
    background: #111;
    padding: 6px;
    border-radius: 30px;
    display: flex;
    gap: 6px;
    justify-self: center;
}

.nav-btn {
    padding: 10px 22px;
    border-radius: 30px;
    border: none;
    background: transparent;
    color: #aaa;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn.active {
    background: #e8e8e4;
    color: #111;
}

.nav-btn:hover {
    color: #fff;
}
.menu-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    background: #e6e6e2;
    cursor: pointer;
}

/* Hero */
.hero {
    text-align: center;
    padding: 60px 20px;
}

.hero h1 {
    font-size: 64px;
    margin-bottom: 10px;
}

.hero-subtitle {
    color: #555;
    margin-bottom: 50px;
}

/* Карточки */
.cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.card {
    width: 260px;
    padding: 30px 20px;
    border-radius: 20px;

    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.card-label {
    display: inline-block;
    background: rgba(255,255,255,0.6);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 20px;
}

.icon {
    font-size: 32px;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.card p {
    font-size: 14px;
    color: #555;
}

/* Кнопка */
.main-btn {
    margin-top: 50px;
    padding: 14px 32px;
    border-radius: 30px;
    border: none;
    background: #111;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.main-btn:hover {
    opacity: 0.9;
}

.folder {
    position: relative;
    width: 300px;
    height: 160px;
    transform: scale(2.6);
}

.folder-wrapper {
    position: fixed;
    left: 50%;
    bottom: 155px;
    transform: translateX(-50%);
    z-index: -1;
}

/* Верхний язычок */
.folder-tab {
    position: absolute;
    top: 0;
    left: 20px;
    width: 90px;
    height: 30px;
    background: #d8b98a;
    border-radius: 6px 6px 0 0;
    z-index: 0;
}

/* Основное тело папки */
.folder-body {
position: absolute;
    bottom: -22px;
    width: 100%;
    height: 150px;
    background: #e2c79a;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 1;
}

/* Листы внутри */
.paper {
    position: absolute;
    bottom: 45px;
    width: 232px;
    height: 110px;
    background: #fff;
    border-radius: 6px;
    left: 30px;
}

.paper:nth-child(1) {
    transform: rotate(-3deg);
    opacity: 0.95;
}

.paper:nth-child(2) {
    transform: rotate(2deg);
    left: 40px;
}

/* Скрепка */
.clip {
    position: absolute;
    top: 18px;
    left: 230px;
    width: 18px;
    height: 40px;
    border: 2px solid #888;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    transform: rotate(8deg);
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
/* Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: #8888882e;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 9999;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal */
.modal-loading-overlay {
position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 50;
    border-radius: 20px;
    color: #fff;
}

.modal-loading-overlay.hidden {
    display: none;
}

.modal-loading-text {
    font-weight: 500;
    font-size: 14px;
}


/* ===== Folder Loader ===== */

.folder-loader {
    position: relative;
    width: 100px;
    height: 100px;
}

/* Основная папка */
.folder-body-mini {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(180deg, #f1d6a8, #e2c79a);
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Язычок сверху */
.folder-body-mini::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 10px;
    width: 40px;
    height: 20px;
    background: linear-gradient(180deg, #f1d6a8, #e2c79a);
    border-radius: 6px 6px 0 0;
    z-index: -1;
}

/* Файлы */
.file {
        z-index: -1;
    position: absolute;
    top: -30px;
    left: 45px;
    width: 30px;
    height: 38px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    opacity: 0;
}


/* уголок файла */
.file::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #fff;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.file1 { animation: dropFile 1.8s infinite ease-in-out; }
.file2 { animation: dropFile 1.8s infinite ease-in-out 0.4s;
    left: 25px; }
.file3 { animation: dropFile 1.8s infinite ease-in-out 0.8s;
    left: 50px; }

@keyframes dropFile {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    60% {
        transform: translateY(60px);
        opacity: 1;
    }
    100% {
        transform: translateY(80px);
        opacity: 0;
    }
}

/* === FILE FLY ANIMATION === */

.upload-box.fly {
    position: relative;
    z-index: 1000;
    animation: flyToFolder 0.8s cubic-bezier(.4,.8,.2,1) forwards;
}

@keyframes flyToFolder {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    40% {
        transform: scale(0.9) translateY(20px);
    }
    70% {
        transform: scale(0.6) translateY(120px);
        opacity: 0.9;
    }
    100% {
        transform: scale(0.3) translateY(220px);
        opacity: 0;
    }
}

/* === FOLDER BOUNCE === */

.folder.bounce {
    animation: folderBounce 0.6s ease;
}

@keyframes folderBounce {
    0% { transform: scale(2.6); }
    40% { transform: scale(2.75); }
    70% { transform: scale(2.55); }
    100% { transform: scale(2.6); }
}


.dark-modal {
        position: relative;
    width: 420px;
    padding: 32px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    box-shadow: 0 40px 120px rgba(0,0,0,0.8);
}

/* Progress */
.modal-progress {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.modal-progress span {
    flex: 1;
    height: 4px;
    background: #333;
    border-radius: 10px;
}

.modal-progress .active {
    background: #4cff88;
}

/* Icon */
.modal-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* Text */
.modal-title {
    text-align: center;
    margin-bottom: 6px;
}

.modal-desc {
    text-align: center;
    font-size: 14px;
    color: #aaa;
    margin-bottom: 24px;
}

/* Options */
.option-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.option-card:hover {
    background: rgba(255,255,255,0.1);
}

.option-card.active {
    outline: 1px solid #e2c79a;
}

.option-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #d8b98a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-text strong {
    display: block;
    font-size: 14px;
}

.option-text span {
    font-size: 12px;
    color: #333;
}

.option-arrow {
    margin-left: auto;
    opacity: 0.6;
}

/* Actions */
.modal-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
}

.ghost-btn {
    background: transparent;
    border: 1px solid #a7a7a6;
    color: #a7a7a6;
    padding: 10px 18px;
    border-radius: 14px;
    cursor: pointer;
    transition: 0.5s;
}

.ghost-btn:hover{
    border: 1px solid rgba(0, 0, 0, 0.8);
    color: rgb(0,0,0)
}

.primary-btn {
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    border: none;
    padding: 10px 22px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}
.primary-btn:hover{
    background: #fff;
    color:#111;
}

/* Upload */
.upload-zone {
    margin-bottom: 20px;
}

.upload-box {
    padding: 18px;
    border-radius: 18px;
    border: 1px dashed #444;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    background: rgba(255,255,255,0.04);
}

.upload-box:hover {
    border-color: #d8b98a;
    background: rgba(255,255,255,0.08);
}

.upload-icon {
    font-size: 26px;
    margin-bottom: 8px;
}

.upload-text strong {
    display: block;
    font-size: 14px;
}

.upload-text span {
    font-size: 12px;
    color: #aaa;
}

.file-name {
    margin-top: 10px;
    font-size: 13px;
    color: #d8b98a;
    text-align: center;
}

.file-card.drag-over {
    background: #d8b98a;
    border: 2px dashed #e2c79a;
    transform: scale(1.03);
}

.file-card {
    transition: 0.15s ease;
}


.dragging {
    opacity: 0.4;
    transform: scale(0.95);
}

/* ===== RESULT LINK ===== */

.result-link {
    margin-top: 20px;
    animation: slideDown 0.3s ease;
}

.result-link label {
    font-size: 12px;
    color: #aaa;
    display: block;
    margin-bottom: 6px;
}

.link-copy {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 6px;
    gap: 6px;
}

.link-copy input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 13px;
    outline: none;
}

.link-copy button {
    border: none;
    background: #d8b98a;
    color: #111;
    padding: 6px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
}

.copy-hint {
    font-size: 11px;
    text-align: center;
    color: #aaa;
    margin-top: 6px;
}


/* ===== COMPACT FOLDER TREE ===== */

.folder-tree {
    margin: 20px auto;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
}

.tree {
    list-style: none;
    padding-left: 0;
}

.tree ul {
    list-style: none;
    padding-left: 18px;
    margin-top: 4px;
}

.tree-item {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s;
}


.not-auth-block p{ 
    text-align: center;
    font-size: 14px;
    color: #aaa;
}
.tree-item:hover {
    background: rgba(0,0,0,0.08);
}

.arrow {
    display: flex;
    border: 1px solid rgba(0, 0, 0, 0.8);
    border-radius: 998px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 10px;
    width: 16px;
    align-items: center;
    justify-content: space-around;
}

.tree-item .icon {
    font-size: 14px;
    margin: 0;
}



.name {
    flex: 1;
}

.add-folder-btn {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 6px;
    border: none;
    background: #d8b98a;
    cursor: pointer;
    opacity: 0;
    transition: 0.2s;
}

.tree-item:hover .add-folder-btn {
    opacity: 1;
}

.tree ul {
    max-height: 1000px;
    opacity: 1;
}

/* когда папка открыта */
.tree-item.open + ul {
    max-height: 500px; /* достаточно большое значение */
    opacity: 1;
}

.tree-item.selected {
    background: #e2c79a;
    border: 1px solid #d8b98a;
    color: #fff;
}

.tree-item.selected .name {
    font-weight: 600;
}

/**/
.time-modal {
    position: absolute;

    top: 0;
    left: 100%;   
    margin-left: 12px;

    width: 260px;
    padding: 12px;
    border-radius: 14px;

    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);

    opacity: 0;
    transform: translateX(-10px) scale(0.95);
    pointer-events: none;

    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 20;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
border: 1px solid rgba(0,0,0,0.05);
}



/* when active */
.time-modal.show {
    opacity: 1;
    transform: translateX(0); /* плавно выезжает справа */
    pointer-events: auto;
}


.time-title {
    font-size: 12px;
    margin-bottom: 8px;
    color: #333;
}

.time-options {
    display: flex;
    gap: 6px;
}

.time-btn {
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid #d8b98a;
    background: transparent;
    font-size: 11px;
    cursor: pointer;
}


.time-btn:hover {
    border-color: #d8b98a;
}

.time-btn.active {
    background: #d8b98a;
    color: #fff;
    border-color: #d8b98a;
}

/* hidden helper */
.hidden {
    display: none;
}

/* animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== My Files Page ===== */
.files-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.files-page h1 {
    font-size: 48px;
    margin-bottom: 30px;
}

.files-toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.files-toolbar input,
.files-toolbar select {
    padding: 12px 16px;
    border-radius: 16px;
    border: none;
    background: rgba(255,255,255,0.4);
    font-size: 14px;
}

.dashboard-widget {
width: 100%;
    border-radius: 28px;
    background: linear-gradient(135deg, #333, #2c2f3a);
    color: #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    padding: 24px;
    backdrop-filter: blur(20px);
    margin-bottom: 30px;
}

/* ===== ПОГОДА ===== */

.weather-widget {
    display: flex;
    justify-content: space-between;
    padding: 32px;
    border-radius: 28px;
    background: linear-gradient(135deg, #333, #2c2f3a);
    color: #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* LEFT */

.weather-left {
    width: 40%;
}

.weather-city {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 10px;
}

.weather-main {
    display: flex;
    align-items: center;
    gap: 25px;
}

.weather-icon-big {
    font-size: 80px;
    opacity: 0.9;
}

.weather-temp-big {
    font-size: 52px;
    font-weight: 600;
    line-height: 1;
}

.weather-desc {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 6px;
}

.weather-rain {
    font-size: 12px;
    opacity: 0.6;
    margin-top: 4px;
}

/* RIGHT */

.weather-right {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 60%;
    flex-direction: row;
    justify-content: space-between;
}

.forecast-day {
    margin-bottom: 20px;
    opacity: 0.65;
}

.forecast-item {
    text-align: center;
    font-size: 12px;
}

.forecast-item i {
    font-size: 60px;
    margin: 8px 0;
}

.forecast-temp {
    font-weight: 600;
}


.weather-bg-icon i {
    font-size: 140px;
}

/* Текст поверх */
.weather-left {
    position: relative;
    z-index: 2;
}

.weather-date {
    font-size: 13px;
    opacity: 0.6;
    margin-bottom: 6px;
}

.weather-temp {
    font-size: 32px;
    font-weight: 600;
}

.weather-city {
    font-size: 14px;
    margin-left: 6px;
    opacity: 0.7;
}

.weather-desc {
    font-size: 13px;
    opacity: 0.6;
}

.weather-icon {
    font-size: 40px;
}

/* ===== STORAGE ===== */

.storage-block {
    margin-top: 15px;
}
.storage-block p {
    margin-bottom: 5px;
    font-size: 23px;
    font-weight: 600;
}
.storage-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.storage-top strong {
    opacity: 0.8;
}

.storage-gray {
    opacity: 0.6;
    font-size: 13px;
}

.storage-bar {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.storage-progress {
    height: 100%;
    width: 68%;
    background:  #aaa;
    border-radius: 10px;
    transition: width 0.4s ease;
}

.upgrade-btn {
    padding: 10px 24px;
    border-radius: 12px;
    border: none;
    background: #ffffff;
    color: #333;
    font-weight: 600;
    cursor: pointer;

    transition: transform 0.2s ease;
}

.upgrade-btn:hover {
    transform: translateY(-2px);
}

.info-block {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

/**/
.dashboard-stats {
    width: 60%;
    display: flex;
    gap: 30px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8), #c6a676);
    border-radius: 24px;
    padding: 24px;
    color: #fff;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
    flex-direction: column;
    align-items: stretch;
}

/* АКТИВНОСТЬ */

.activity-block {
    width: 100%;
}

.activity-block h3 {
    margin-bottom: 15px;
    font-size: 16px;
    opacity: 0.8;
}

.activity-total {
        display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.activity-item {
    display: flex;
    margin-bottom: 12px;
    flex-direction: column;
    align-items: center;
}

.activity-item strong {
    font-size: 22px;
    display: block;
    margin-bottom: 12px;
}

.activity-item span {
    font-size: 12px;
    opacity: 0.6;
}

/* ТИПЫ */

.file-types-block {
    width: 60%;
}

.file-types-block h3 {
    margin-bottom: 15px;
    font-size: 16px;
    opacity: 0.8;
}

.type-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 12px;
}

.type-bar {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.type-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg,#00ff88,#00ccff);
    border-radius: 8px;
    transition: width 0.5s ease;
}

/* Grid */
.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* Card */
.file-card {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);

    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.2s ease;
}

.file-card:hover {
    transform: translateY(-4px);
}

.file-icon {
    font-size: 34px;
}

.file-info strong {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    font-size: 14px;
}

.file-info span {
    font-size: 12px;
    color: #555;
}

.file-actions {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

.file-actions button {
    background: transparent;
    border: none;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.7;
}

.delete-btn:hover {
    color: brown;
}

.open-btn:hover{
    color:#217346;
}

.file-actions button:hover {
    opacity: 1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 15px 0 20px;
}

/* Капсула */
.breadcrumb-pill {
    padding: 6px 14px;
    background: rgba(17, 17, 17, 0.15);
    border-radius: 999px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: 0.25s;
    backdrop-filter: blur(6px);
}

.file-icon i {
    font-size: 28px;
}

.fa-file-pdf { color: #e74c3c; }
.fa-file-word { color: #2b579a; }
.fa-file-excel { color: #217346; }
.fa-file-powerpoint { color: #d24726; }
.fa-file-image { color: #9b59b6; }
.fa-file-video { color: #e67e22; }
.fa-file-audio { color: #f1c40f; }
.fa-file-zipper { color: #7f8c8d; }
.fa-folder { color: #e2c79a; }


.create-folder-card {
    cursor: pointer;
    border: 2px dashed #ccc;
    transition: 0.2s;
    color: #e2c79a;
}
.file-info.new-files{
    color: #333;
}

.create-folder-card:hover {
    border-color: #e2c79a;
}

.breadcrumb-pill:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-2px);
}

/* Стрелка */
.breadcrumb-arrow {
    display: flex;
    align-items: center;
    color: rgba(255,255,255,0.5);
}
.breadcrumb-item {
    cursor: pointer;
    transition: 0.2s;
}

.breadcrumb-pill.drag-over {
    background: #333;
    color: white;
    transform: scale(1.05);
}

.breadcrumb-item:hover {
    color: #fff;
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 5px;
    opacity: 0.6;
}

/**/
/* ===== VIEWER (in main style) ===== */

.viewer {
    position: fixed;
    inset: 0;
    background: #8888882e;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.viewer.hidden {
    display: none;
}

.viewer-content {
    max-height: 92vh;
    border-radius: 26px 26px 0 0;
    box-shadow:
        0 40px 80px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.4);

    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.viewer-header {
    height: 64px;
    padding: 0 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;
        background: #202124;
    backdrop-filter: blur(10px);
}

.viewer-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

/* Кнопки */
.download-btn {
     margin: 10px;
    /* height: 38px; */
    padding: 14px;
    border-radius: 12px;
    background: #d8b98a;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s ease;
}

.download-btn:hover {
    background: #333;
}
.download-btn:active {
    transform: scale(0.97);
}
#closeViewer {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #5f6368;
}

#closeViewer:hover {
    color: white;
}

/* Общий фон для режима doc */
.viewer.doc-viewer {
    background: #f1f3f400;
}

.viewer.doc-viewer .viewer-body {
    flex: 1;
    overflow: auto;
    display: flex;
    justify-content: center;
        background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
        gap: 40px; /* расстояние между страницами */
}

.viewer.doc-viewer .viewer-body > div {
        background: #ffffff;
    height: 100%;
    width: 100%;
    max-width: 850px;
    box-sizing: border-box;
    /* padding: 70px; */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}


/* Текст */
.viewer.doc-viewer p {
    font-size: 14px;
    line-height: 1.8;
    color: #202124;
}

/* Таблицы */



/* Заголовки */
.viewer.doc-viewer .viewer-body h1,
.viewer.doc-viewer .viewer-body h2,
.viewer.doc-viewer .viewer-body h3 {
    margin-top: 28px;
    margin-bottom: 14px;
    font-weight: 600;
}

/* Таблицы */
.viewer.doc-viewer table {
    width: 100%;
    border-collapse: collapse;
}


.viewer.doc-viewer td,
.viewer.doc-viewer th {
    border: 1px solid #dadce0;
    padding: 8px;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .viewer.doc-viewer .viewer-body > div {
        padding: 30px 20px;
        border-radius: 10px;
    }
}

.viewer-content {
    animation: viewerFade 0.25s ease;
}

@keyframes viewerFade {
    from {
        transform: scale(0.98);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== HBO STYLE VIDEO VIEWER ===== */

.viewer.video-mode {
    background: #8888882e;
        backdrop-filter: blur(10px);
}

.viewer.video-mode .viewer-content {
    width: 90vw;
    height: 85vh;
    border-radius: 28px;
    overflow: hidden;
}

.viewer.video-mode .viewer-body {
    position: relative;
    flex: 1;
    overflow: hidden;
}

/* HERO VIDEO */
.video-hero {
    position: relative;
    width: 100%;
    height: 100%;
}


.viewer.video-mode .viewer-header {
    display: none;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

/* затемнение */
.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.85) 0%,
        rgba(0,0,0,0.6) 40%,
        rgba(0,0,0,0.2) 70%,
        rgba(0,0,0,0) 100%
    );

    pointer-events: none;

    transition: 
        opacity 0.5s ease,
        transform 0.5s ease;
}

.viewer.video-mode.playing .video-overlay {
    opacity: 0;
    transform: translateX(-40px);
}

/* Контент слева */
.video-content {
    color: white;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;

    padding: 40px;
    z-index: 5;

    opacity: 0;
    transform: translateY(-15px);
    transition: opacity 0.3s ease, transform 0.3s ease;

    position: relative; /* важно */
}

/* градиентная тень */
.video-content::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;

    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.75) 0%,
        rgba(0,0,0,0.55) 30%,
        rgba(0,0,0,0.25) 60%,
        rgba(0,0,0,0.0) 100%
    );
}

/* По умолчанию скрыт */
/* Показываем только когда есть show-ui */
.viewer.video-mode.show-ui .video-content {
    opacity: 1;
    transform: translateY(0);
}


.video-content h1 {
    font-size: 48px;
    margin-bottom: 12px;
    font-weight: 600;
}

.video-content p {
    font-size: 16px;
    margin-bottom: 25px;
    color: #ccc;
}

.play-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 30px;
    border: none;
    background: #d8b98a;
    color: #111;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s ease;
}

.play-btn i {
    font-size: 16px;
}

.play-btn:hover {
    background: white;
    transform: scale(1.05);
}

.video-ui {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    pointer-events: none;
}

.video-top {
    color: white;
}

.video-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    pointer-events: auto;
}

.control-btn {
    background: rgba(0,0,0,0.6);
    border: none;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

.control-btn:hover {
    background: rgba(0,0,0,0.85);
}

.progress {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 6px;
    cursor: pointer;
    position: relative;
}

.progress-filled {
    height: 100%;
    width: 0%;
    background: #d8b98a;
    border-radius: 6px;
}

.video-close {
    position: absolute;
    top: 20px;
    right: 20px;

    background: rgba(0,0,0,0.6);
    border: none;
    color: white;
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}

.video-close:hover {
    background-color: #c6a676;
    transform: scale(1.1);
}

.video-buttons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.download-btn-video {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 30px;
    background: rgba(255,255,255,0.9);
    color: #111;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.download-btn-video:hover {
    background: white;
    transform: scale(1.05);
}

/* Play */
.viewer.audio-mode .viewer-header {
    display: none;
}
.viewer.audio-mode .viewer-content {
    border-radius: 26px;
}


.viewer.audio-mode {
    background: #8888882e;
    backdrop-filter: blur(10px);
}

.audio-hero {
    box-sizing: unset !important;
    position: relative;
    width: 600px;
    max-width: 90%;
    margin: auto;
    padding: 40px;
    background: radial-gradient(circle at 0% 0%, #c6a676, transparent 50%), radial-gradient(circle at 100% 100%, #111, transparent 50%), linear-gradient(135deg, rgb(0 0 0), #555);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    /* border: 1px solid rgba(0, 0, 0, 0.6); */
    /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 0 40px rgba(255, 255, 255, 0.03); */
    color: white;
}

.audio-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.audio-close:hover {
    background-color: #c6a676;
    transform: scale(1.1);
}

.audio-content h2 {
    max-width: 90%;
    margin-bottom: 25px;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.audio-play,
.audio-mute {
    background: #d8b98a;
    border: none;
    color: #111;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
}

.audio-progress {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
        box-shadow: 0 0 10px rgba(216,185,138,0.6);
}

.audio-progress-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;  

}

.audio-time {
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    opacity: 0.8;
}

.audio-time .divider {
    margin: 0 4px;
}


.audio-progress-filled {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;        /* ВАЖНО */
    width: 0%;
    background: #d8b98a;
    border-radius: 6px;
    transition: width 0.1s linear;
}
.audio-progress:hover {
    height: 8px;
    transition: 0.2s;
}

.audio-thumb {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    transition: 0.2s;
}

.audio-progress:hover .audio-thumb {
    opacity: 1;
}

.audio-download {
    color: white;
    font-size: 18px;
}
.audio-play.playing {
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(216,185,138,0.6); }
    70% { box-shadow: 0 0 0 12px rgba(216,185,138,0); }
    100% { box-shadow: 0 0 0 0 rgba(216,185,138,0); }
}

.audio-hero.playing {
    box-shadow: 0 0 40px rgba(216,185,138,0.3);
    transition: 0.4s;
}


/*PDF*/
.pdf-wrapper {
    width: 90vw;
    height: 90vh;
    background: #111;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pdf-top {
    background: #1c1c1c;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.pdf-frame {
    flex: 1;
    width: 100%;
    border: none;
}
