:root {
    --bg-primary: #0c0d12;
    --bg-secondary: rgba(255, 255, 255, 0.03);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-blue: #60a5fa;
    --accent-blue-hover: #93c5fd;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.07);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Google Sans', 'Inter', system-ui, -apple-system, sans-serif;
    background: radial-gradient(circle at 50% 50%, #111320 0%, #040406 100%) !important;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: -25%;
    right: -15%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.28) 0%, rgba(168, 85, 247, 0.06) 45%, transparent 75%);
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    bottom: -25%;
    left: -15%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, rgba(59, 130, 246, 0.05) 45%, transparent 75%);
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
}

/* Background Effects */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background: transparent;
    pointer-events: none;
}

/* Header */
.app-header {
    height: 72px;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
    background: rgba(10, 11, 18, 0.6) !important;
    backdrop-filter: blur(30px) saturate(210%);
    -webkit-backdrop-filter: blur(30px) saturate(210%);
    box-shadow: inset 0 -1px 0 0 rgba(255, 255, 255, 0.05), 0 8px 32px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 50;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: transform 0.2s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.logo-container:hover {
    transform: scale(1.02);
}

.logo-container:active {
    transform: scale(0.98);
}

.app-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.app-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    background: linear-gradient(to right, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    min-height: 44px;
    border-radius: 6px;
    transition: all 0.2s ease;
    background: transparent;
}

.admin-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.admin-link .material-icons {
    font-size: 18px;
}

/* Main Content Layout */
.main-content {
    flex: 1;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Typography */
.page-title-container {
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.9375rem;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.breadcrumb-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-blue);
    transform: translateX(-4px);
    color: white;
}

.breadcrumb-link:active {
    transform: scale(0.96) translateX(-4px);
}

.breadcrumb-link .material-icons {
    font-size: 18px;
    color: var(--accent-blue);
}

.breadcrumb-separator {
    color: var(--text-secondary);
    font-size: 16px;
}

.breadcrumb-current {
    color: var(--text-secondary);
    font-size: 1.125rem;
    font-weight: 700;
}

/* Folders & Grids */
.folders-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.folder-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.folder-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #cbd5e1;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.folder-title .material-icons {
    color: var(--accent-blue);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Cards */
.card {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 24px;
    padding: 2rem 1.75rem;
    min-height: 100px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.15), 0 8px 32px 0 rgba(0, 0, 0, 0.35);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.03), transparent);
    opacity: 1;
    pointer-events: none;
}

.card:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.3), 0 20px 50px 0 rgba(0, 0, 0, 0.55);
    transform: translateY(-4px) scale(1.005);
}

.card:active {
    transform: scale(0.98) translateY(-2px);
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.2), 0 4px 15px 0 rgba(0, 0, 0, 0.4);
    transition: all 0.1s ease;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.event-icon {
    background: rgba(147, 51, 234, 0.15);
    color: #c084fc;
    border: 1px solid rgba(147, 51, 234, 0.3);
}

.wall-icon {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow: hidden;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Empty States */
.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    gap: 1rem;
    background: var(--glass-bg);
    border: 1px dashed var(--glass-border);
    border-radius: 16px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 48px;
    opacity: 0.5;
}

.empty-action {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: var(--accent-blue);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.2s;
}

.empty-action:hover {
    background: var(--accent-blue-hover);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.folder-section {
    animation: fadeIn 0.5s ease backwards;
}

.folder-section:nth-child(1) { animation-delay: 0.1s; }
.folder-section:nth-child(2) { animation-delay: 0.2s; }
.folder-section:nth-child(3) { animation-delay: 0.3s; }
.folder-section:nth-child(4) { animation-delay: 0.4s; }
.wall-card { animation: fadeIn 0.5s ease backwards; }

/* Collapsible Standalone Section */
.standalone-details summary::-webkit-details-marker {
    display: none;
}

.standalone-details {
    margin-top: 3rem;
}

.standalone-details .folder-title {
    cursor: pointer;
    user-select: none;
    list-style: none;
    padding: 0.75rem;
    margin-left: -0.75rem;
    width: calc(100% + 1.5rem);
    border-radius: 8px;
    border-bottom: 0;
    transition: all 0.2s ease;
}

.standalone-details .folder-title::-webkit-details-marker {
    display: none;
}

.standalone-details .dropdown-icon {
    margin-left: auto;
    transition: transform 0.3s;
}

.standalone-details[open] .dropdown-icon {
    transform: rotate(180deg);
}

.standalone-details .folder-title:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.standalone-details .folder-title:active {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(0.995);
}

.standalone-details .grid-container {
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
