/* Dashboard Layout */
.dashboard-wrapper {
    min-height: 100vh;
    background-color: var(--color-bg);
    background-image: 
        radial-gradient(circle at 30% 70%, rgba(var(--color-primary-rgb), 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(var(--color-primary-rgb), 0.2) 0%, transparent 50%);
}

.dash-header {
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--nav-border);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.widget-card {
    background-color: var(--color-surface);
    border-radius: 12px;
    border: 1px solid var(--card-border);
    overflow: hidden;
    transition: transform var(--transition-normal);
}

.widget-card:hover {
    border-color: rgba(var(--color-primary-rgb), 0.3);
}

.widget-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--nav-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-header h3 {
    font-size: 1.1rem;
    color: var(--color-text);
}

.widget-body {
    padding: 0;
    min-height: 200px;
}

.text-muted {
    color: var(--color-text-muted);
}

.login-wrapper {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg);
    background-image: 
        radial-gradient(circle at 30% 70%, rgba(var(--color-primary-rgb), 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(var(--color-primary-rgb), 0.2) 0%, transparent 50%);
    padding: 2rem;
}

.login-card {
    max-width: 450px;
    width: 100%;
}

.hidden {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.login-error {
    background: rgba(255, 95, 86, 0.1);
    padding: 0.8rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 95, 86, 0.3);
}

/* Drive Files List */
.drive-files-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.drive-file-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--color-surface-light);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.drive-file-item:hover {
    background: rgba(var(--color-primary-rgb), 0.05);
    border-color: rgba(var(--color-primary-rgb), 0.3);
    transform: translateX(5px);
}

.file-icon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    flex-shrink: 0;
}

.file-name {
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.modal-content {
    width: 100%;
    max-width: 900px;
    height: 85vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--color-text);
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.close-btn:hover {
    color: #ff5f56;
}

.modal-body {
    flex: 1;
    background: #fff; /* white for document preview contrast */
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}