/* Drive View Specific Styles - Dropbox Inspired & Grid View */

.drive-container {
    padding: 0;
    background: #fff;
    border-radius: 8px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Toolbar */
.drive-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.drive-breadcrumb {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.drive-breadcrumb span {
    cursor: pointer;
}

.drive-breadcrumb span:hover {
    text-decoration: underline;
}

.drive-breadcrumb .separator {
    color: #aeaeae;
    font-size: 14px;
    text-decoration: none !important;
    cursor: default;
}

.drive-actions {
    display: flex;
    gap: 12px;
}

.btn-drive-primary {
    background: #0061FE;
    /* Dropbox Blue */
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-drive-primary:hover {
    background: #0056da;
}

.btn-drive-secondary {
    background: transparent;
    color: #444;
    border: 1px solid #ccc;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-drive-secondary:hover {
    background: #f5f5f5;
}

/* GRID VIEW STYLES */
.drive-content-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.drive-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.drive-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.drive-card:hover {
    border-color: #0061FE;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Settings button in card */
.drive-card-settings-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: #ccc;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.drive-card:hover .drive-card-settings-btn {
    opacity: 1;
}

/* Privacy Badge */
.drive-card-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    pointer-events: none;
}

.drive-card-privacy-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-public {
    background: #eafaf1;
    color: #27ae60;
    border: 1px solid #d5f5e3;
}

.badge-private {
    background: #fff0f0;
    color: #ff3b30;
    border: 1px solid #ffdada;
}

.badge-password {
    background: #fef9e7;
    color: #f39c12;
    border: 1px solid #fcf3cf;
}

.drive-card-settings-btn:hover {
    background: #f0f0f0;
    color: #666;
}

/* Icon Styling */
.drive-card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drive-card-icon svg {
    width: 100%;
    height: 100%;
    fill: #8FB8E6;
    /* Default folder blue */
}

.drive-card[data-type="file"] .drive-card-icon svg {
    fill: none;
    stroke: #999;
    stroke-width: 1.5;
}

/* Text */
.drive-card-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 4px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drive-card-meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 12px;
}

/* Action Buttons within Card */
.drive-card-actions {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-top: auto;
    /* Push to bottom */
}

.drive-btn-action {
    flex: 1;
    padding: 6px;
    border-radius: 4px;
    border: 1px solid #eee;
    background: #f9f9f9;
    color: #555;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.1s;
}

.drive-btn-action:hover {
    background: #eee;
    color: #333;
    border-color: #ddd;
}

.drive-btn-action.download {
    color: #0061FE;
    background: #f0f7ff;
    border-color: #dbeaff;
}

.drive-btn-action.download:hover {
    background: #e0f0ff;
}

.drive-btn-action.share {
    color: #27ae60;
    background: #eafaf1;
    border-color: #d5f5e3;
}

.drive-btn-action.share:hover {
    background: #dff7eb;
}

@media (max-width: 600px) {
    .drive-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .drive-grid-view {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }

    .drive-card {
        padding: 10px;
    }

    .drive-card-icon {
        width: 48px;
        height: 48px;
    }

    .drive-card-name {
        font-size: 13px;
    }

    .drive-card-meta {
        font-size: 11px;
    }

    .drive-btn-action {
        padding: 5px;
        font-size: 11px;
    }
}
