:root {
    --bg-main: #ffffff;
    --sidebar-dark: #121212;
    --deep-red: #8b0000;
    --gray-light: #f8f9fa;
    --gray-border: #e9ecef;
    --text-dark: #1a1a1a;
    --text-muted: #6c757d;
}

/* 1. Global Resets */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg-main); 
    color: var(--text-dark);
}

/* 2. Layout Structure */
.app-container { display: flex; min-height: 100vh; }

.sidebar {
    width: 260px;
    background-color: var(--sidebar-dark);
    color: white;
    padding: 2.5rem 1.5rem;
    position: fixed;
    height: 100vh;
}
.btn-google { 
    width: 100%; 
    padding: 12px; 
    background: #fff; 
    border: 1px solid #ddd; 
    border-radius: 6px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
    cursor: pointer; 
    text-decoration: none; 
    color: #333; 
    font-weight: 600; 
    transition: 0.2s; 
    box-sizing: border-box; 
}
.content { 
    flex-grow: 1; 
    margin-left: 260px; 
    padding: 3rem; 
}

/* 3. Sidebar Navigation - Cleaning up those blue links */
.brand { font-size: 1.5rem; font-weight: 800; margin-bottom: 3rem; }
.brand span { color: var(--deep-red); }

.nav-menu { list-style: none; } /* Removes bullets seen in screenshot */

.nav-item {
    display: block;
    color: #999 !important; /* Forces gray instead of blue */
    text-decoration: none;  /* Removes underline */
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    font-weight: 500;
    transition: 0.2s;
}

.nav-item:hover, .nav-item.active { 
    background: #252525; 
    color: white !important; 
}

.nav-item.active { border-left: 4px solid var(--deep-red); }

/* 4. Action Buttons & Highlights */
.btn-primary {
    background-color: var(--deep-red);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    border: none;
}

/* 5. Dashboard Cards */
.card {
    background: var(--bg-main);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--gray-border);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    margin-bottom: 2rem;
}

.progress-bar { background: #eee; height: 8px; border-radius: 4px; overflow: hidden; }
.progress-fill { background: var(--deep-red); height: 100%; }

.empty-state {
    text-align: center;
    padding: 5rem;
    border: 2px dashed var(--gray-border);
    color: var(--text-muted);
    border-radius: 12px;
}

/* Album Grid */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.album-card {
    background: white;
    border: 1px solid var(--gray-border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.album-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* Deep Red for Private, Gray for Public */
.album-card.private {
    border-left: 5px solid var(--deep-red);
}

.album-card.public {
    border-left: 5px solid #6c757d;
}

.album-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.album-card.private .album-icon { color: var(--deep-red); }

.album-info h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.album-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.album-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.btn-view {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 5px 12px;
    border: 1px solid var(--gray-border);
    border-radius: 6px;
}

.btn-share {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.btn-disabled {
    background: #eee;
    color: #999;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: not-allowed;
    font-size: 14px;
}

.tier-badges {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.badge {
    background: var(--gray-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--gray-border);
}

/* Pulsing Upgrade Button when limit reached */
.btn-upgrade-pulse {
    background-color: var(--deep-red);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(139, 0, 0, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(139, 0, 0, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(139, 0, 0, 0); }
}
.file-manager { background: white; border-radius: 12px; border: 1px solid var(--gray-border); overflow: hidden; }

.file-list-header { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr 100px; 
    background: var(--gray-light); 
    padding: 12px 20px; 
    font-size: 12px; 
    font-weight: 700; 
    color: var(--text-muted); 
    text-transform: uppercase;
}

.file-row { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr 100px; 
    padding: 15px 20px; 
    border-bottom: 1px solid var(--gray-border); 
    align-items: center;
    transition: background 0.2s;
}

.file-row:hover { background: #fafafa; }
.file-name i { margin-right: 10px; color: var(--text-muted); }
.file-actions a { color: var(--text-dark); text-decoration: none; }

.thumb-container {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 4px;
    background: #f0f0f0;
    margin-right: 12px;
    vertical-align: middle;
}

.file-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This keeps the aspect ratio while filling the square */
}
.btn-pill {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 50px; /* The Pill Shape */
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-pill:hover {
    background: #e5e5e5;
    border-color: #ccc;
}

.action-link {
    color: #666;
    font-size: 1.1rem;
    margin: 0 8px;
    text-decoration: none;
    transition: 0.2s;
}

.action-link:hover { color: #000; }
.action-link.delete:hover { color: var(--deep-red); }

.file-label {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 0.95rem;
    word-break: break-all;
    align-self: center; /* Ensures text stays centered relative to the thumb */
}