/* styles.css - HP IngiSync Modern UI System */
:root {
    --hp-blue: #007dba;
    --hp-accent: #0096d6;
    --hp-dark: #121212;
    --hp-card: #1e1e1e;
    --hp-gray: #a0a0a0;
    --hp-text: #e0e0e0;
    --hp-border: rgba(255, 255, 255, 0.08);
    --success: #10B981;
    --error: #EF4444;
}

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

body {
    background-color: var(--hp-dark);
    color: var(--hp-text);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
}

.wrapper { display: flex; min-height: 100vh; }

/* SIDEBAR RECONSTRUCTION */
.sidebar {
    width: 280px;
    background-color: var(--hp-card);
    border-right: 1px solid var(--hp-border);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
}

.sidebar-header { padding: 2rem; border-bottom: 1px solid var(--hp-border); }

.sidebar-nav { flex: 1; padding: 1.5rem 1rem; }
.sidebar-nav ul { list-style: none; }
.sidebar-nav li { margin-bottom: 0.5rem; }

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: var(--hp-gray);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
}

.nav-link:hover {
    background-color: rgba(0, 125, 186, 0.1);
    color: var(--hp-blue);
}

/* CONTENT AREA */
.content { flex: 1; padding: 3rem; overflow-y: auto; }

h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.5px; }

.card {
    background-color: var(--hp-card);
    border: 1px solid var(--hp-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* FORMS */
.input {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--hp-border);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: border 0.2s;
}

select.input {
    background-color: var(--hp-card);
    color: white;
}

select.input option {
    background-color: var(--hp-card);
    color: white;
}

.input:focus { outline: none; border-color: var(--hp-blue); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary { background-color: var(--hp-blue); color: white; }
.btn-primary:hover { background-color: var(--hp-accent); transform: translateY(-1px); }

/* RESPONSIVE TABLES TO CARDS */
@media (max-width: 768px) {
    .content { padding: 1rem; }
    table, thead, tbody, th, td, tr { display: block; width: 100%; }
    thead { display: none; }
    tr { 
        background: var(--hp-card); 
        margin-bottom: 1rem; 
        border-radius: 12px; 
        padding: 1rem; 
        border: 1px solid var(--hp-border);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    td { 
        padding: 0.5rem 0; 
        border: none !important; 
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    td:first-child { 
        align-items: flex-start; 
        text-align: left; 
        border-bottom: 1px solid var(--hp-border) !important;
        margin-bottom: 0.5rem;
    }
    .btn { 
        padding: 12px; 
        width: 100%; 
        font-weight: 700;
        margin-bottom: 5px;
    }
}

/* TABLES */
table { width: 100%; border-collapse: collapse; margin-top: 2rem; }
th { text-align: left; padding: 1rem; color: var(--hp-gray); font-weight: 500; border-bottom: 2px solid var(--hp-border); }
td { padding: 1.2rem 1rem; border-bottom: 1px solid var(--hp-border); vertical-align: middle; }

/* ANIMATIONS */
.animate-fade { animation: fadeIn 0.4s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* UTILITIES */
.badge { padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
