:root {
    --primary-color: #2ecc71;
    --primary-hover: #27ae60;
    --bg-dark: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
}

.landing-bg {
    background: radial-gradient(circle at top left, #1a2a24, var(--bg-dark)), url('https://www.transparenttextures.com/patterns/cubes.png');
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.login-box {
    padding: 3rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.logo {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.login-box h2 {
    margin-bottom: 2rem;
    font-weight: 400;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group input {
    width: 100%;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.4);
}

.error-msg {
    color: #ef4444;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-links {
    margin-top: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #1e293b;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    position: relative;
    border-top: 4px solid var(--primary-color);
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: var(--text-muted);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: white;
}

.modal-body {
    margin-top: 1.5rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Dashboard Layout */
.dashboard-container {
    background-color: #f8fafc;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
}

.dashboard {
    display: flex;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    overflow: hidden;
}

.sidebar {
    width: 260px;
    background: #0f2b4a;
    padding: 2.5rem 0;
    display: flex;
    flex-direction: column;
    color: white;
}

.sidebar .profile-section {
    text-align: center;
    margin-bottom: 2.5rem;
}

.sidebar .profile-section img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #ccc;
    margin-bottom: 1rem;
    border: 2px solid rgba(255,255,255,0.2);
}

.nav-links {
    list-style: none;
    flex-grow: 1;
}

.nav-links li {
    margin-bottom: 0.5rem;
}

.nav-links a {
    color: #a0aec0;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 12px 2.5rem;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a i {
    width: 25px;
    font-size: 1.1rem;
    margin-right: 12px;
}

.nav-links a:hover, .nav-links a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid #3b82f6;
}

.main-content {
    flex-grow: 1;
    padding: 3rem 4rem;
    overflow-y: auto;
    background: #f8fafc;
    color: #1e293b;
    position: relative;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.top-bar .search-bar {
    background: white;
    padding: 12px 20px;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    outline: none;
}

.main-content h2 {
    color: #0f2b4a;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.folder-grid, .image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.folder-card {
    background: #6366f1;
    color: white;
    padding: 1.5rem;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.2s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.folder-card:hover {
    transform: translateY(-5px);
}

.folder-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.image-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, border 0.3s;
    position: relative;
    border: 2px solid transparent;
}

.image-card.selected {
    border: 2px solid #6366f1;
    transform: scale(0.96);
}

.select-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: none;
    accent-color: #6366f1;
}

.image-card:hover .select-checkbox,
.image-card.selected .select-checkbox {
    display: block;
}

.image-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.image-card:hover {
    transform: translateY(-5px);
}
.image-card.selected:hover {
    transform: translateY(-5px) scale(0.96);
}

/* Bulk Actions */
.bulk-actions {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: bottom 0.3s ease;
    z-index: 100;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.bulk-actions.visible {
    bottom: 30px;
}

.bulk-actions button {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.bulk-actions button:hover {
    background: #dc2626;
}

.image-info {
    padding: 1rem;
}

.image-info .filename {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.image-info .date {
    font-size: 0.8rem;
    color: #64748b;
}

/* Upload Area */
.upload-area {
    border: 2px dashed #cbd5e1;
    background: white;
    padding: 3rem;
    text-align: center;
    border-radius: 16px;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    color: #64748b;
}

.upload-area:hover, .upload-area.dragover {
    border-color: #6366f1;
    background: #f5f3ff;
}

.upload-icon {
    font-size: 3rem;
    color: #6366f1;
    margin-bottom: 1rem;
}
