/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Google Sans Text", "Google Sans",'Product Sans', Arial, sans-serif;
    color: #444746;
    background-color: #f8fafd;
}

button {
    font-family: "Google Sans Text", "Google Sans",'Product Sans', Arial, sans-serif;
}

input {
    font-family: "Google Sans Text", "Google Sans",'Product Sans', Arial, sans-serif;
}



/* Header styles */
header {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #f8fafd;
    border-bottom: none;
    cursor: pointer;
}

svg .hollow-path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.logo-container {
    display: flex;
    align-items: center;
    padding-left: 16px;
    padding-right: 30px;
    min-width: 238px;
    flex-shrink: 0;
    cursor: pointer;
}

.logo {
    width: 40px;
    height: 40px;
    margin-right: 8px;
}

.logo-text {
    font-size: 22px;
    font-weight: 500;
}

.search-bar {
    flex-grow: 1;
    max-width: 720px;
    margin-right: 16px;
    position: relative;
    height: 100%;
}

.search-bar input {
    width: 100%;
    padding: 8px 56px;
    border-radius: 24px;
    border: none;
    font-size: 14px;
    background-color: #E9EEF6;
    height: 48px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.25);
    background-color: #ffffff;
}

.search-icon, .advanced-search-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.search-container {
    flex-grow: 1;
    display: flex;
    justify-content: flex-start;
}

.search-icon, .advanced-search-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
}

.search-icon {
    left: 16px;
}

.advanced-search-icon {
    right: 16px;
}

.search-icon:hover, .advanced-search-icon:hover, .filter:hover, .file-item:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.search-icon:active, .advanced-search-icon:active, .filter:active {
    background-color: rgba(0, 0, 0, 0.2);
}

.file-item:active {
    background-color: #c2e7ff;
}
.file-item.selected:hover {
    background-color: #b6d9f0;
}


.header-icons {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.header-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    color: rgb(94, 99, 104);
    transition: all 0.3s ease;
}


.header-content {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: space-between;
}

.header-icon:hover, .file-options:hover {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
}

.header-icon:active, .file-options:active {
    background-color: rgba(0, 0, 0, 0.2);
}


.header-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.header-icon-link:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.header-icon-link:active {
    background-color: rgba(0, 0, 0, 0.2);
}

.profile-image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-left: 8px;
}

/* Main content styles */
.container {
    display: flex;
    height: calc(100vh - 65px);
    width: 100%;
}

/* Left sidebar styles */
.left-sidebar {
    width: 256px;
    padding: 16px;
    background-color: #f8fafd;
    border-right: none;
    top: 0;
    height: 100%;
    overflow-y: auto;
    flex-shrink: 0;
}

.new-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px 16px 16px;
    background-color: #ffffff;
    border: none;
    border-radius: 16px;
    font-size: 14px;
    color: #444746;
    cursor: pointer;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.25);
    margin-bottom: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.new-button:hover {
    background-color: #E9EEF6;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.new-button:active {
    background-color: #E9EEF6;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.25);
}

.new-button svg {
    margin-right: 8px;
}

.left-sidebar-active {
    background-color: #c2e7ff;
}

.sidebar-nav {
    list-style-type: none;
}

.sidebar-nav li {
    display: flex;
    align-items: center;
    padding: 4px 16px;
    margin-bottom: 8px;
    border-radius: 16px 16px 16px 16px;
    cursor: pointer;
    color: #001d35;
}


.sidebar-nav li.group-1 {
    margin-bottom: 2px; /* Even closer spacing for Home, My Drive, Computers */
}

.sidebar-nav li.group-2 {
    margin-bottom: 16px; /* Closer spacing for Shared with me, Recent, Starred */
}


.sidebar-nav li:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.sidebar-nav li svg {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}


.sidebar-nav svg {
    fill: currentColor;
}


.storage-bar {
    width: 100%;
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
    margin: 8px 0;
}

.storage-used {
    width: 50%;
    height: 100%;
    background-color: #0B57D0;
    border-radius: 2px;
}

.manage-storage {
    display: inline-block;
    padding: 8px 24px;
    font-size: 14px;
    border: 1px solid #747775;
    border-radius: 20px;
    color: #0B57D0;
    font-weight: 500;
    text-decoration: none;
    margin-top: 8px;
    transition: background-color 0.3s ease; 
}

.manage-storage:hover {
    background-color: rgb(11, 87, 208, 0.1);
}

.manage-storage:active {
    background-color: rgb(11, 87, 208, 0.2);
}


/* Main content area styles */
.main-content {
    flex-grow: 1;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 16px;
    margin-bottom: 16px;
    overflow-y: auto;
    overflow-x: hidden;
    min-width: 0;
}

.content-header-container {
    position: sticky;
    top: -20px;
    background-color: #ffffff;
    z-index: 10;
    padding-top: 20px;
    margin-top: -20px;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
}

.content-title {
    font-size: 24px;
    font-weight: 500;
    color: #1f1f1f;
}

.view-options {
    display: flex;
    align-items: center;
}

.view-switcher {
    display: flex;
    border: 1px solid #5f6368;
    border-radius: 16px;
    overflow: hidden;
}

.view-button {
    display: flex;
    align-items: center;
    background-color: #e8f0fe;
    cursor: pointer;
    justify-content: center;
    width: 48px;
    height: 32px;
    border: none;
    outline: none;
    transition: background-color 0.3s;
}

.list-view-button {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

/* Add rounded corners to grid-view-button (right button) */
.grid-view-button {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}



.view-button:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.view-button.active {
    background-color: #c2e7ff;
}

.divider {
    width: 1px;
    background-color: #5f6368;
}



.view-details {
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: opacity 0.3s ease;

}
.view-icon {
    align-items: center;
    padding: 2px 4px 0 8px;
}

.view-details:hover {
    opacity: 0.7;
}

.filter-container {
    position: relative;
    display: inline-block;
}


.filters {
    display: flex;
    padding-bottom: 16px;
    color: #444746;
}

.filter {
    display: flex;
    align-items: center;
    padding: 4px 8px 4px 16px ;
    background-color: #ffffff;
    font-size: 14px;
    margin-right: 8px;
    cursor: pointer;
    border: 1px solid #5f6368;
    border-radius: 8px;
    fill: #5f6368;
    font-weight: 550;
}

.filter-text {
    overflow: hidden;
}

.filter-arrow {
    margin-left: 4px;
}


.filter.active {
    background-color: #c2e7ff;
    color: #1f1f1f;
}

.filter.active:hover {
    background-color: #b6e2ff;
}


.filter .filter-clear {
    margin-left: 8px;
    cursor: pointer;
}

.filter .filter-clear:hover {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
}




.dropdown {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
    top: 100%;
    left: 0;
}

.dropdown.show {
    display: block;
}

.dropdown-item {
    color: #444746;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f1f3f4;
}

.files-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-top: 16px;
}

.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(208px, 1fr));
    gap: 16px;
    transition: none;
}

.files-grid.list-view {
    display: block;
    width: 100%;
}

.file-item {
    background-color: #f0f4f9;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    aspect-ratio: 1 / 1;
    padding: 0px 8px 8px 8px;
    cursor: pointer;
    user-select: none;
}

.file-item.selected {
    background-color: #c2e7ff;
}

.list-item.file-item.selected {
    background-color: #c2e7ff;
}

.file-preview {
    height: 128px;
    background-color: #e8eaed;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.file-preview img {
    max-width: 100%;
    max-height: 100%;
}

.file-info {
    padding: 16px 0 16px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    order: -1; /* Move to the top */
}

.file-name {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
}

.list-item .file-name {
    display: block;
}
.file-item svg {
    flex-shrink: 0;
}

.file-name svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    fill: rgb(234, 67, 53);
    overflow: visible;
}

.file-options {
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    margin-left: 8px;
    overflow: visible;
}



.file-preview {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.file-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.selection-bar {
    background-color: #F0F4F9;
    border-radius: 24px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
}

.selection-bar-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.selection-bar-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: background-color 0.3s;
    color: #001d35;
}

.selection-bar-button:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.selection-bar-button:active {
    background-color: rgba(0, 0, 0, 0.2);
}

#selected-count {
    font-weight: 500;
}


#close-notification {
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    fill: #D2D2D2;
    padding: 4px;
}

#close-notification:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}


/* file Viewer Overlay styles */
.file-viewer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(31, 31, 31, 0.9);
    z-index: 1000;
}

.file-viewer-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

.file-viewer-header.external {
    background-color: #1E1E1F;
}

#file-iframe::-webkit-scrollbar {
    display: none;
}


.file-viewer-title {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 500;
}

#file-filename {
    color: #c4c7c5;
    font-weight: 600;
    overflow: hidden;
}

#file-type-icon {
    margin-right: 12px;
    overflow: visible;
    flex-shrink: 0;
}

.file-viewer-actions {
    display: flex;
}

.file-viewer-header .file-action-button {
    padding: 8px 9px 4px 10px;
}

#file-close {
    margin-left: 0;
    margin-right: 8px;
}


.file-action-button {
    background: none;
    margin-left: 8px;
    cursor: pointer;
    border: none;
    border-radius: 32px;
}
.file-viewer-header .file-action-button svg {
    fill: rgba(255,255,255,0.87);
}

.file-action-button:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.file-viewer-content {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}


#file-iframe {
    width: 821px;
    height: 100%;
    border: none;
    scrollbar-width: none;
    overflow-y: scroll; /* Enable scrolling */
    -ms-overflow-style: none;
}




@media screen and (max-width: 650px) {
    .logo-container {
        min-width: calc(156.25px + 81.75 * ((100vw - 450px) / 200));
        min-width: calc(40.875vw - 27.6875px);
    }
}

@media screen and (max-width: 450px) {
    .logo-container {
        min-width: 156.25px;
    }
}

@media screen and (max-width: 768px) {
    .header-icon {
        width: 20px;
        height: 20px;
    }

    .header-icon-link {
        width: 32px;
        height: 32px;
    }

    .filters {
        flex-direction: column;
        overflow-wrap: hidden;
    }

    .filter-container {
        margin-bottom: 8px;
    }

    .dropdown {
        width: 100%;
    }
    .file-viewer-header {
        height: 56px;
    }

    .file-viewer-title {
        font-size: 16px;
    }

    .file-viewer-content {
        top: 56px;
    }
}

/* Scrollbar styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background-color: #f1f3f4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background-color: #dadce0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #bdc1c6;
}


.highlight {
    background-color: yellow;
    color: black;
    font-weight: bold;
}



/* Base Styles */
.signin-popup {
    max-width: 450px;
    padding: 48px 40px 36px;
    background: white;
    color: #202124;
    border-radius: 8px;
    box-shadow: 0 2px 4px -1px rgba(0,0,0,0.2), 
                0 4px 5px 0 rgba(0,0,0,0.14), 
                0 1px 10px 0 rgba(0,0,0,0.12);
}

/* Header Section */
.signin-header {
    text-align: center;
    margin-bottom: 32px;
}

.signin-logo {
    width: 40px;
    margin-top: 16px;
    margin-bottom: 8px;
}

.signin-title {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 8px;
}

.signin-subtitle {
    font-size: 14px;
    margin-bottom: 0;
}

/* Form Section */
.signin-form {
    max-width: 370px;
    margin: 0 auto;
}

/* Input Containers */
.signin-input-container {
    position: relative;
    margin-bottom: 8px;
}

.signin-input {
    width: 100%;
    padding: 13px 15px;
    font-size: 14px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s ease;
    background: transparent;
}

.signin-input::placeholder {
    color: #5f6368;
    opacity: 1;
}

.signin-input:focus {
    border-color: #0b57d0;
}

/* Password Visibility Button */
.signin-password-visibility {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    fill: #5f6368;
}

.signin-password-visibility:hover {
    fill: #202124;
}

/* Checkbox Styles */
.signin-checkbox-container {
    margin: 16px 0 24px;
    text-align: left;
}

.signin-checkbox-label {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.signin-checkbox {
    margin-right: 16px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

#signin-password.error {
    border: 1px solid #d93025;
}

/* Error Message */
.signin-error {
    color: #d93025;
    margin-bottom: 16px;
    display: none;
    font-size: 14px;
    text-align: left;
}

/* Action Buttons Container */
.signin-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
}

/* Primary Button (Next) */
.signin-submit-btn {
    background: #0b57d0;
    color: white;
    border: none;
    padding: 0 24px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    height: 36px;
    min-width: 80px;
    transition: background-color 0.2s;
}

.signin-submit-btn:hover {
    background: #0946a6;
}

.signin-submit-btn:active {
    background: #07347d;
}

/* Secondary Button (Forgot/Create) */
.signin-forgot-btn,
#forgot-email-btn,
.signin-back-btn {
    background: rgba(11, 87, 208, 0);
    color: #0b57d0;
    border: none;
    padding: 0 22px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    height: 36px;
    min-width: 70px;
    transition: background-color 0.2s;
}

.signin-forgot-btn:hover,
#forgot-email-btn:hover,
.signin-back-btn:hover {
    background: rgba(11, 87, 208, 0.15);
}

.signin-forgot-btn:active,
#forgot-email-btn:active,
.signin-back-btn:active {
    background: rgba(11, 87, 208, 0.3);
}


/* User Email Display */
.signin-user-email {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 14px;
}

.signin-change-user {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.signin-change-user:hover {
    background-color: rgba(0,0,0,0.04);
}

/* Disabled States */
.signin-submit-btn:disabled {
    background: #e8eaed;
    color: #9aa0a6;
    cursor: not-allowed;
}

/* Success Message */
.signin-success {
    text-align: center;
    color: #1e8e3e;
    padding: 16px;
    margin-bottom: 16px;
    display: none;
}

/* Step Transitions */
.signin-step {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.signin-step.fade-out {
    opacity: 0;
}

.signin-step.fade-in {
    opacity: 1;
}



/* Advanced Search Popup Styles */
.advanced-search-popup {
    position: absolute;
    top: 64px; /* Adjust based on your header height */
    left: 256px;
    width: 720px; /* Match the width of the search bar */
    background-color: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(32,33,36,.28);
    z-index: 1000;
}


.popup-close-button:hover {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
}


.popup-header h2 {
    font-size: 20px;
    margin-bottom: 16px;
}

.popup-body {
    display: flex;
    flex-wrap: wrap;
}

.popup-field {
    width: 48%;
    margin-bottom: 16px;
    margin-right: 4%;
}

.popup-field:nth-child(2n) {
    margin-right: 0;
}

.popup-field label {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.popup-field input,
.popup-field select {
    width: 100%;
    padding: 8px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 14px;
}

.popup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

.learn-more {
    font-size: 14px;
    color: #1a73e8;
    text-decoration: none;
}

.popup-buttons {
    display: flex;
    gap: 8px;
}

.popup-button {
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.popup-button.primary {
    background-color: #1a73e8;
    color: #fff;
}

.popup-button:hover {
    background-color: #f1f3f4;
}

.popup-button.primary:hover {
    background-color: #1669bb;
}

@media screen and (max-width: 768px) {
    .advanced-search-popup {
        width: 90%;
    }
    .popup-field {
        width: 100%;
        margin-right: 0;
    }
}
@media screen and (max-width: 900px) {
    .game-delete-popup-buttons {
        gap: 67px;
    }
}

.advanced-search-icon:hover {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
}


/* Options Menu Styles */
.options-menu {
    position: fixed;
    background-color: #fff;
    border: 1px solid #dadce0;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,.3), 0 2px 6px 2px rgba(60,64,67,.15);

    border-radius: 8px;
    padding: 8px 0;
    
    font-size: 14px;
    color: #3c4043;
    min-width: 200px;
    z-index: 1002;
}

.options-menu-item {
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
    user-select: none;
}

[data-action="star"] svg {
    fill: #5f6368;
}

.report-menu-item {
    color:#ad0000;
}


.options-menu-item:hover {
    background-color: #f8f9fa;
}

.options-menu-item:active {
    background-color: #f1f3f4;
}

.options-menu-item svg {
    width: 18px;
    height: 18px;
    margin-right: 16px;
    color: #5f6368;
    flex-shrink: 0;
}

.options-menu-divider {
    height: 1px;
    background-color: #e8eaed;
    margin: 8px 0;
}

.files-grid.list-view .options-menu {
    top: 100%;
    left: auto;
    right: 16px;
}

.file-item {
    position: relative;
}


.overlay-carousel {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 1010;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    padding: 0 8px;
}

#file-prev, #file-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto; /* Re-enable clicking for the buttons */
    transition: background-color 0.3s ease;
    margin: 0 8px;
    padding: 8px;
}

#file-prev:hover, #file-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

#file-prev svg, #file-next svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Remove these carousel buttons from the header */
.file-viewer-header .overlay-carousel {
    display: none;
}

.markdown-content {
    padding: 20px;
    color: #444746;
    width: 100%;
    max-width: 821px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
}

.markdown-content p {
    text-align: center;
    padding: 20px;
    margin: 0;
}



.list-header {
    display: flex;
    padding: 8px 16px;
    background-color: #ffffff;
    font-weight: 500;
    position: sticky;
    top: 0;
    z-index: 5;
    border-bottom: 1px solid #dadce0;
}

.list-item {
    display: flex;
    padding: 8px 16px;
    align-items: center;
    cursor: pointer;
}

.list-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.list-cell {
    flex: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
    font-size: 14px;
    padding-left: 12px;

}

.list-cell:first-child {
    flex: 2.5; /* Make the Name column wider */
}

.list-cell.actions-cell {
    flex: 0.1;
    width: 40px;
    min-width: 20px;
    justify-content: flex-end;
}

.list-cell:first-child svg {
    margin-right: 8px;
}

.header-cell {
    cursor: pointer;
}

.header-cell.sort-active::after {
    content: '\25BE';
    margin-left: 4px;
    color: #1a73e8;
}

.header-cell.sort-active {
    color: #1a73e8;
}

.header-cell.sort-desc::after {
    content: '\25B4';
    margin-left: 4px;
}


.list-item + .list-item {
    border-top: 1px solid #e0e0e0;
}

.list-item.file-item {
    aspect-ratio: unset;
    overflow: hidden;
    flex-direction: row;
    border-radius: 0;
    background-color: #ffffff;
}

/* Adjust file options icon in list view */
.list-item .file-options {
    margin-left: auto;
}

/* Hide the grid-specific styles when in list view */
.files-grid.list-view .file-preview,
.files-grid.list-view .file-info {
    display: none;
}





/* Right Sidebar Styles */
.none-selected {
    text-align: center;
}


.right-sidebar {
    width: 56px;
    background-color: #f8fafd;
    border-left: none;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
    overflow: hidden;
}

.right-sidebar.expanded {
    width: 320px;
    background-color: #fff;
    margin-left: 16px;
    border-radius: 16px;
}

.right-sidebar-header {
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: #fff;
    padding: 16px;
    z-index: 1;
    display: none;
    width: 100%;
}

.expanded .right-sidebar-header {
    display: flex;
}

.sidebar-close-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 8px 3px 10px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.sidebar-close-button:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.right-sidebar-file-info {
    display: flex;
    align-items: center;
    flex: 1;
}

#sidebar-file-filename {
    color: #1f1f1f;
    font-weight: 600;
}


#sidebar-file-type-icon {
    width: 24px;
    height: 24px;
    margin-right: 18px;
    flex-shrink: 0;
}

.right-sidebar-content {
    padding: 16px;
    overflow-y: auto;
    display: none;
}

.expanded .right-sidebar-content {
    display: block;
}

.right-sidebar-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.right-sidebar-content p {
    font-size: 14px;
    margin-bottom: 16px;
}

.right-sidebar-content hr {
    margin: 16px 0;
    border: none;
    border-top: 1px solid #dadce0;
}

.right-sidebar-content dl {
    font-size: 14px;
}

.right-sidebar-content dt {
    font-weight: 600;
    margin-top: 8px;
}

.right-sidebar-content dd {
    margin-left: 0;
    margin-bottom: 8px;
}

.right-sidebar img {
    margin: 0 auto 16px auto;
    display: block;
    max-width: 100%;
}

.sidebar-preview-img {
    border-radius: 8px;
    border: 1px solid #dadce0;
    width: 100%;
}


/* Game Overlay Styles */
.game-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.95);
    z-index: 2000;
    display: flex;
    flex-direction: column;
}

.game-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.95);
    z-index: 999;
    display: none; /* Show when needed */
}

.game-header {
    top: 0;
    padding: 24px 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #dadce0;
    position: relative;
    background: linear-gradient(135deg, rgba(251, 188, 4, 0.3), /* #fbbc04 */ rgba(52, 168, 83, 0.4), /* #34a853 */ rgba(66, 133, 244, 0.5), /* #4285f4 */ rgba(234, 67, 53, 0.3) /* #ea4335 */);
}

.game-storage-info {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.game-storage-bar {
    width: 110%;
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
    position: relative;
}

.storage-used.game-storage-used {
    width: 100%;
    height: 150%;
    border-radius: 2px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.game-storage-used-text {
    font-weight: 500;
}

.storage-used[style*="width: 8"],
.storage-used[style*="width: 9"],
.storage-used[style*="width: 100"] /* 100% */ {
    background-color: #ea4335 !important;
}


.storage-used[style*="width: 6"],
.storage-used[style*="width: 7"] {
    background-color: #ea9335 !important;
}

.storage-used[style*="width: 4"],
.storage-used[style*="width: 5"] {
    background-color: #fbbc04 !important; 
}


.storage-used[style*="width: 2"],
.storage-used[style*="width: 3"] {
    background-color: #4285f4 !important;
}

.storage-used[style*="width: 0"],
.storage-used[style*="width: 1"] {
    background-color: #34a853;
}

/* Hover effect adjustments */
.game-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.2);
}

.game-timer {
    font-size: 18px;
    font-weight: bold;
    color: #0B57D0;
    position: absolute;
    right: 32px;
}

.game-table-container {
    flex-grow: 1;
    overflow-y: auto;
}

.game-table {
    width: 100%;
    border-collapse: collapse;
    color: black;
}

.game-table th, .game-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #dadce0;
}

.game-table th {
    background-color: #f8f8f8;
    position: sticky;
    top: 0;
}

.game-table tbody tr:nth-child(3n+1) {
    background-color: rgba(251, 188, 4, 0.5);  /* Google Yellow */
}

.game-table tbody tr:nth-child(3n+2) {
    background-color: rgba(52, 168, 83, 0.5);  /* Google Green */
}

.game-table tbody tr:nth-child(3n) {
    background-color: rgba(66, 133, 244, 0.5);  /* Google Blue */
}

/* Focus styles */
.game-table tbody tr:focus-within {
    background-color: rgba(251, 188, 4, 1);  /* Full opacity Yellow */
}

.game-table tbody tr:nth-child(3n+2):focus-within {
    background-color: rgba(52, 168, 83, 1);  /* Full opacity Green */
}

.game-table tbody tr:nth-child(3n):focus-within {
    background-color: rgba(66, 133, 244, 1);  /* Full opacity Blue */
}

#game-delete-special {
    right: 10px;
}

.game-delete-button {
    background: none;
    border: none;
    cursor: pointer;
    color: #d32f2f;
    padding: 4px;
    border-radius: 32px;
    background: transparent;
}

.game-delete-button:focus {
    outline: 2px solid #0B57D0;
    outline-offset: 2px;
}

.game-delete-button svg {
    width: 24px;
    height: 24px;
}

.game-delete-button:hover {
    background: rgba(0, 0, 0, 0.1);
}

.game-delete-popup .game-delete-white {
    color: #1a73e8;
    background-color: #fff;
    border: 1px solid #1a73e8 ;
}

.game-delete-popup .game-delete-white:hover {
    background-color: #dcedff;
}
.game-full-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1000;
    background-color: #fff;
    border: 1px solid #dadce0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.game-full-popup h2 {
    margin-bottom: 8px;
}

.game-full-popup.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.game-over-popup .game-over-content {
    animation: popupAppear 0.5s ease;
}

.game-full-popup button {
    margin-top: 16px;
    padding: 12px 24px;
    background-color: #d93025;
    color: #fff;
    border: none;
    border-radius: 32px;
    cursor: pointer;
}

.game-delete-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    padding: 8px;
    border-radius: 32px;
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    z-index: 1009;
    transition: opacity 0.3s ease, transform 0.3s ease;
    background-clip: content-box, border-box;
    background-image: linear-gradient(white, white), conic-gradient(from 2deg, #fbbc04 0deg, #fbbc04 90deg, #34a853 90deg, #34a853 180deg, #4285f4 180deg, #4285f4 270deg, #ea4335 270deg, #ea4335 1turn);
    background-origin: border-box;
    border: 2px solid transparent;
}

.game-delete-popup.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.game-delete-popup-content {
    text-align: center;
    margin: 16px;
}

.game-delete-popup-buttons {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 200px;
}

.game-delete-popup button {
    padding: 12px 24px;
    border: none;
    border-radius: 32px;
    cursor: pointer;
    background-color: #1a73e8;
    color: #fff;
}

.game-delete-popup button:hover {
    background-color: #1669bb;
}

.important-file {
    background-color: #fff0f0;
}

.special-file {
    background-color: #e0f7fa;
}

.game-table td.special-icon {
    text-align: center;
}

.special-icon img {
    width: 24px;
    height: 24px;
}


/* Popup overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(60, 64, 67, 0.15); /* Semi-transparent background */
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

/* Popup content */
.popup-content {
    background-color: #fff;
    border-radius: 8px;
    width: 360px;
    padding: 16px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.popup-overlay .popup-content {
    position: absolute;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -50%);
    width: 310px;
    padding: 8px;
    border-radius: 32px;
    border: #f0f4f9 11px solid;
    text-align: center;
}

.popup-content {
    width: 100%;
}


.settings-options {
    padding: 16px 0 0 8px;
}

.popup-close-button {
    position: absolute;
    top: 4px;
    right: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
}


/* Apps grid */
.apps-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 8px 0px 8px;
}

.app-icon {
    width: 80px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    padding: 8px;
    border-radius: 8px;
}

.app-icon svg {
    width: 48px;
    height: 48px;
}

.app-icon span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
}

.app-icon:hover {
    background-color: rgba(60, 64, 67, 0.1);
}

/* Settings options */
.settings-options label {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    margin-bottom: 16px;
    cursor: pointer;
}

.settings-options input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #999;
    border-radius: 4px;
    margin-left: 34px;
    cursor: pointer;
    position: relative;
    order: 2;
}

.settings-options input[type="checkbox"]:checked {
    background-color: #1a73e8;
    border-color: #1a73e8;
}

.settings-options input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.game-mode-select {
    margin-left: 8px;
    padding: 6px 24px 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 8px;
}

.game-mode-select:hover {
    border-color: #999;
}

.game-mode-select:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26,115,232,0.2);
}

.help-message {
    padding-top: 8px;
}

.game-over-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.game-over-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
}
.game-over-content h2 {
    margin-bottom: 1rem;
    color: '#F44336';
}

.game-won.game-over-content h2 {
    color: '#4CAF50';
}


.game-table th, .game-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #dadce0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-table th {
    background: rgba(66, 133, 244, 0.5);
    position: sticky;
    top: 0;
    font-weight: 500;
    color: #202124;
    border-bottom: 2px solid #dadce0;
    z-index: 1;
    padding: 16px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 18px;
    letter-spacing: 0.5px;
}

/* Column Widths */
.game-table th:nth-child(1),
.game-table td:nth-child(1) {
    width: 40%;
    padding-left: 24px;
}

.game-table th:nth-child(2),
.game-table td:nth-child(2) {
    width: 15%;
}

.game-table th:nth-child(3),
.game-table td:nth-child(3) {
    width: 15%;
}

.game-table th:nth-child(4),
.game-table td:nth-child(4) {
    width: 20%;
}

.game-table th:last-child,
.game-table td:last-child {
    width: 10%;
    text-align: center;
}

/* Row Hover Effects */
.game-table tbody tr {
    height: 48px;
    transition: background-color 0.1s ease;
}


.game-over-close {
    margin-top: 1rem;
    padding: 0.5rem 2rem;
    background: #0B57D0;
    color: white;
    border: none;
    border-radius: 32px;
    cursor: pointer;
}
.game-over-close:hover {
    background: #094BBD;
}

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

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

@keyframes popupAppear {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes flashRed {
    0% { background-color: white; }
    50% { background-color: red; }
    100% { background-color: white; }
}

/* Animation classes */
.new-row {
    animation: fadeIn 0.5s ease;
}

.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

.flash-red {
    animation: flashRed 0.5s ease;
}


.link-copied-notification {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 16px;
    max-height: 100px; /* Extra safety */
    overflow: hidden;
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: auto;
    transform: none;
    z-index: 10000;
}

.loading-indicator {
    font-size: 0.8em;
    opacity: 0.7;
    margin-left: 8px;
    color: inherit; /* Ensures it matches parent text color in dark mode */
}