:root { 
    --primary: #4A90E2; 
    --bg: #fdf2f2; 
    --white: #ffffff; 
    --text: #333; 
}

body { 
    margin: 0; 
    font-family: 'Inter', system-ui, sans-serif; 
    background: var(--bg); 
    color: var(--text); 
    overflow: hidden; 
}

/* Login Screen */
.login-screen { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: var(--bg); 
    z-index: 9999;
}

.login-card { 
    background: var(--white); 
    padding: 50px; 
    border-radius: 24px; 
    box-shadow: 0 15px 45px rgba(0,0,0,0.07); 
    width: 340px; 
    text-align: center; 
}

/* Layout Principal */
#root-container { 
    display: flex; 
    height: 100vh; 
    width: 100vw; 
    position: relative; 
}

.sidebar { 
    width: 260px; 
    background: var(--white); 
    border-right: 1px solid #eee; 
    padding: 25px; 
    display: flex; 
    flex-direction: column; 
    flex-shrink: 0; 
    transition: transform 0.3s ease; 
}

.logo { 
    font-size: 24px; 
    font-weight: 800; 
    color: var(--primary); 
    margin-bottom: 40px; 
}

.nav-item { 
    padding: 14px 18px; 
    margin-bottom: 8px; 
    border-radius: 12px; 
    cursor: pointer; 
    color: #555; 
    font-weight: 500; 
    transition: 0.2s; 
}

.nav-item:hover { 
    background: #f8fbff; 
    color: var(--primary); 
}

.nav-item.active { 
    background: #eef5ff; 
    color: var(--primary); 
    font-weight: 700; 
}

.nav-logout { 
    margin-top: auto; 
    color: #e74c3c; 
    font-weight: bold; 
}

.main { 
    flex: 1; 
    padding: 40px; 
    overflow-y: auto; 
    box-sizing: border-box; 
    background: var(--bg); 
}

.card { 
    background: var(--white); 
    padding: 20px; 
    border-radius: 18px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.02); 
    margin-bottom: 15px; 
}

.card:hover { 
    box-shadow: 0 6px 20px rgba(0,0,0,0.08); 
}

.search-bar { 
    background: var(--white); 
    padding: 15px 20px; 
    border-radius: 15px; 
    border: 1px solid #eee; 
    width: 100%; 
    box-sizing: border-box; 
    margin-bottom: 25px; 
    font-size: 15px; 
    outline: none; 
}

/* Butoane */
.btn { 
    padding: 10px 18px; 
    border-radius: 10px; 
    border: none; 
    font-weight: bold; 
    cursor: pointer; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    transition: 0.2s; 
}

.btn-blue { background: var(--primary); color: white; }
.btn-green { background: #22c55e; color: white; }
.btn-red { background: #ef4444; color: white; }
.btn-icon { width: 34px; height: 34px; padding: 0; margin-right: 5px; }

/* Formulare */
input, select { 
    padding: 12px; 
    border: 1px solid #eee; 
    border-radius: 10px; 
    width: 100%; 
    box-sizing: border-box; 
    margin-bottom: 10px; 
}

table { 
    width: 100%; 
    border-collapse: collapse; 
}

th { 
    text-align: left; 
    padding: 12px; 
    color: #888; 
    font-size: 11px; 
    text-transform: uppercase; 
    border-bottom: 1px solid #eee; 
}

td { 
    padding: 12px; 
    border-bottom: 1px solid #f9f9f9; 
    font-size: 14px; 
}

.add-new-form { 
    background: #f8f9fa; 
    padding: 20px; 
    border-radius: 12px; 
    margin-bottom: 20px; 
}

/* Modal Eroare Login */
.error-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.error-modal {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.error-modal h3 {
    margin: 0 0 15px 0;
    color: #e74c3c;
    font-size: 20px;
}

.error-modal p {
    margin: 0 0 25px 0;
    color: #666;
    line-height: 1.5;
}

.error-modal-buttons {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

/* Hamburger Menu */
.hamburger-btn {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1000;
    background: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.hamburger-btn span {
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: 0.3s;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
    .login-card { 
        width: 90%; 
        padding: 30px; 
    }
    
    .hamburger-btn { display: flex; }
    .sidebar-overlay.active { display: block; }
    
    .nav-logout { margin-top: 0 !important; }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 999;
        transform: translateX(-100%);
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        overflow-y: auto;
    }
    
    .sidebar.active { transform: translateX(0); }
    
    .main { 
        padding: 80px 15px 15px 15px;
        width: 100%;
    }
    
    header h1 { font-size: 20px !important; }
    
    .card { padding: 15px; }
    
    .btn { 
        padding: 8px 12px; 
        font-size: 13px; 
    }
    
    .btn-icon { 
        width: 32px; 
        height: 32px; 
        margin-right: 3px; 
    }
    
    .card > table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    th, td { 
        padding: 8px; 
        font-size: 12px;
    }
    
    input, select { 
        padding: 10px; 
        font-size: 14px;
    }
    
    .search-bar {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .add-new-form { padding: 15px; }
    .add-new-form h3 { font-size: 16px; }
    
    .card > div {
        flex-wrap: wrap;
    }
}
