/* Project Drive Styling */

.drive-container {
    padding: 30px 48px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.drive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.drive-stats {
    display: flex;
    gap: 20px;
}

.stat-card {
    background: white;
    padding: 16px 24px;
    border-radius: 16px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 140px;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.drive-toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    background: white;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    align-items: center;
}

.search-drive {
    flex: 1;
    border: none;
    background: #f8fafc;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-main);
}

.search-drive:focus {
    outline: 2px solid var(--primary);
    background: white;
}

.drive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    overflow-y: auto;
    padding-bottom: 40px;
}

.file-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.file-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.file-icon-wrapper {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #f8fafc;
}

.file-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.file-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.file-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.file-card:hover .file-actions {
    opacity: 1;
}

.action-btn-sm {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: white;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
}

.action-btn-sm:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.action-btn-sm.danger:hover {
    background: #ef4444;
    border-color: #ef4444;
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    min-height: 200px;
    /* Ensure visible size */
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
    color: var(--primary);
}

.upload-icon {
    width: 48px;
    height: 48px;
    color: var(--border);
    transition: color 0.2s;
}

.upload-zone:hover .upload-icon {
    color: var(--primary);
}