/* --- CSS Variables & Cosmic Theme --- */
:root {
    --bg-deep: #050508;
    --bg-surface: rgba(18, 18, 26, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.08);
    
    --primary: #a855f7;
    --primary-hover: #9333ea;
    --secondary: #3b82f6;
    --accent: #00f2fe;
    
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

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

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- Cosmic Background --- */
.cosmic-background {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    background: radial-gradient(circle at 50% 0%, #1a0b2e 0%, var(--bg-deep) 60%);
}

/* --- Glassmorphism Utils --- */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.accent-text {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Buttons --- */
button {
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-main);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* --- Screens Logic --- */
.screen {
    display: none;
    min-height: 100vh;
}
.screen.active {
    display: flex;
}

/* --- Login Screen --- */
#login-screen {
    justify-content: center;
    align-items: center;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
}

.portal-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    line-height: 1.1;
}

.portal-subtitle {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 0.9rem;
}

.google-icon {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    padding: 2px;
}

#btn-google-login {
    width: 100%;
    padding: 15px;
    font-size: 16px;
}

.login-footer {
    margin-top: 25px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Dashboard Screen --- */
#dashboard-screen {
    flex-direction: row;
}

.sidebar {
    width: 260px;
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
}

.sidebar-header {
    margin-bottom: 40px;
}

.sidebar-header h2 {
    font-size: 1.5rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-glass);
}

.avatar-placeholder {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 2px solid var(--primary);
}

.user-info p {
    font-weight: 600;
    font-size: 0.95rem;
}

.badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

.badge-creator {
    background: rgba(168, 85, 247, 0.2);
    color: var(--primary);
    border: 1px solid rgba(168, 85, 247, 0.4);
}

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

.nav-links li {
    margin-bottom: 10px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-links li.active a, .nav-links a:hover {
    color: var(--text-main);
    background: var(--bg-glass);
}

/* --- Main Content --- */
.main-content {
    flex-grow: 1;
    padding: 40px 50px;
    overflow-y: auto;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 2rem;
}

/* --- Projects Table --- */
.table-glass {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    overflow: hidden;
}

.projects-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.projects-table th {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.projects-table td {
    padding: 20px;
    border-bottom: 1px solid var(--border-glass);
}

.projects-table tr:last-child td {
    border-bottom: none;
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 50px !important;
    font-style: italic;
}
