* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, sans-serif;
}

body {
    background-color: #0F0C1B;
    color: #E0AAFF;
    height: 100vh;
    overflow: hidden;
}

.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0F0C1B 0%, #201A30 100%);
}

.login-card {
    background: rgba(38, 33, 58, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 20px;
    padding: 40px;
    width: 380px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    text-align: center;
}

.brand .logo {
    font-size: 40px;
}

.brand h1 {
    font-size: 28px;
    color: #00F5D4;
    letter-spacing: 2px;
    margin-top: 10px;
}

.brand p {
    font-size: 11px;
    color: rgba(224, 170, 255, 0.6);
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.form-group {
    text-align: left;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 11px;
    color: #00F5D4;
    display: block;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: #151026;
    border: 1px solid rgba(224, 170, 255, 0.2);
    border-radius: 10px;
    color: #FFF;
    outline: none;
}

.form-group input:focus {
    border-color: #00F5D4;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: #00F5D4;
    border: none;
    border-radius: 10px;
    color: #0F0C1B;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.alert {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 12px;
}

.alert-danger {
    background: rgba(217, 4, 41, 0.2);
    color: #FF4D6D;
    border: 1px solid #D90429;
}

.app-layout {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 260px;
    background: #151026;
    border-right: 1px solid rgba(224, 170, 255, 0.1);
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.brand-header h2 {
    color: #00F5D4;
    letter-spacing: 2px;
}

.sidebar-section h3 {
    font-size: 11px;
    color: rgba(224, 170, 255, 0.5);
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.nav-list {
    list-style: none;
}

.nav-list li {
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 6px;
    transition: background 0.2s;
}

.nav-list li.active, .nav-list li:hover {
    background: rgba(0, 245, 212, 0.15);
    color: #00F5D4;
    font-weight: 600;
}

.sidebar-footer {
    margin-top: auto;
}

.btn-logout {
    display: block;
    text-align: center;
    padding: 10px;
    background: rgba(217, 4, 41, 0.15);
    color: #FF4D6D;
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #0F0C1B;
    overflow: hidden;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid rgba(224, 170, 255, 0.1);
}

.top-bar h1 {
    font-size: 24px;
    color: #FFF;
}

.stats-badge {
    background: rgba(0, 245, 212, 0.1);
    color: #00F5D4;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(0, 245, 212, 0.3);
    font-size: 12px;
    font-weight: 600;
}

.gallery-container {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.media-card {
    background: rgba(38, 33, 58, 0.5);
    border: 1px solid rgba(224, 170, 255, 0.1);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, border-color 0.2s;
}

.media-card:hover {
    transform: translateY(-4px);
    border-color: #00F5D4;
}

.media-preview {
    height: 160px;
    background: #07050E;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.media-preview img, .media-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-preview .placeholder {
    font-size: 32px;
    color: rgba(224, 170, 255, 0.3);
}

.media-info {
    padding: 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.media-title {
    font-size: 13px;
    font-weight: 600;
    color: #FFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.media-meta {
    font-size: 11px;
    color: rgba(224, 170, 255, 0.5);
    margin-bottom: 10px;
}

.media-actions {
    display: flex;
    gap: 6px;
}

.btn-action {
    flex: 1;
    padding: 6px;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    background: rgba(224, 170, 255, 0.1);
    color: #E0AAFF;
    text-decoration: none;
    text-align: center;
}

.btn-action:hover {
    background: #00F5D4;
    color: #0F0C1B;
}

.btn-action.btn-del:hover {
    background: #FF4D6D;
    color: #FFF;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #1A1528;
    border: 1px solid rgba(0, 245, 212, 0.3);
    border-radius: 16px;
    padding: 28px;
    width: 420px;
    text-align: center;
}

.modal-content h3 {
    margin-bottom: 15px;
    color: #00F5D4;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    background: #0F0C1B;
    border: 1px solid rgba(224, 170, 255, 0.2);
    border-radius: 8px;
    color: #FFF;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-secondary {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(224, 170, 255, 0.3);
    color: #E0AAFF;
    border-radius: 8px;
    cursor: pointer;
}

.delete-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.btn-warning {
    padding: 12px;
    background: rgba(255, 158, 0, 0.15);
    border: 1px solid #FF9E00;
    color: #FF9E00;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
}

.btn-warning:hover {
    background: #FF9E00;
    color: #0F0C1B;
}

.btn-danger {
    padding: 12px;
    background: rgba(217, 4, 41, 0.15);
    border: 1px solid #D90429;
    color: #FF4D6D;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
}

.btn-danger:hover {
    background: #D90429;
    color: #FFF;
}
