:root {
    --drive-blue: #1a73e8;
    --drive-hover: #f1f3f4;
    --drive-border: #dadce0;
    --search-highlight: #fff9c4;
}

/* ================= HEADER ================= */
.drive-header {
    background-color: white;
    border-bottom: 1px solid var(--drive-border);
    padding: 12px 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ================= SEARCH ================= */
.search-container {
    margin: 15px 0;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 10px 40px 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--drive-border);
    font-size: 14px;
}

.search-box input:focus {
    outline: none;
    border-color: var(--drive-blue);
    box-shadow: 0 0 0 0.15rem rgba(26,115,232,.25);
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #5f6368;
}

.search-results {
    display: none;
    position: absolute;
    background: white;
    width: 100%;
    max-height: 320px;
    overflow-y: auto;
    z-index: 1000;
    border: 1px solid var(--drive-border);
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.search-result-item {
    padding: 10px 15px;
    border-bottom: 1px solid var(--drive-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-result-item:hover {
    background-color: var(--drive-hover);
}

.search-result-item .drive-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-result-item .folder-icon {
    font-size: 32px;
    color: var(--drive-blue);
}

.search-result-item .file-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.no-results {
    padding: 12px 15px;
    color: #5f6368;
    font-style: italic;
}

/* ================= DRIVE ================= */
.drive-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.drive-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid var(--drive-border);
}

.drive-item:hover {
    background-color: var(--drive-hover);
}

.drive-icon {
    width: 36px;
    height: 36px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.folder-icon {
    color: var(--drive-blue);
    font-size: 32px;
}

.file-icon {
    width: 32px;
    height: 32px;
}

.drive-content {
    flex: 1;
    min-width: 0;
}

.drive-name {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.path-text {
    font-size: 0.8rem;
    color: #5f6368;
}

/* ================= FOLDERS ================= */
.folder-toggle {
    cursor: pointer;
    color: var(--drive-blue);
    font-size: 22px;
    margin-right: 10px;
    width: 22px;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.subfolder {
    padding-left: 30px;
    display: none;
}

.subfolder.show {
    display: block;
}

.empty-folder {
    padding: 12px 15px 12px 50px;
    color: #5f6368;
    font-style: italic;
}

/* ================= LINKS ================= */
.file-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.file-link:hover {
    text-decoration: none;
}

/* ================= HIGHLIGHT ================= */
.search-highlight {
    background-color: var(--search-highlight);
    font-weight: bold;
}