/* 
   BeskiDron Client Portal - Premium Dark Theme 
   Matching Admin Panel Aesthetics
*/

:root {
    --bg-color: #0b1622;
    --card-bg: #101d2e;
    --sidebar-bg: #0d1926;
    --border-color: #1a2f42;
    --text-primary: #ffffff;
    --text-secondary: #8896a7;
    --primary: #e67e22;
    --primary-hover: #d35400;
    --success: #10b981;
    --warning: #eab308;
    --danger: #ef4444;
    --sidebar-text: #a0aec0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    min-height: 100vh;
    line-height: 1.5;
}

/* Sidebar */
.client-sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
}

.sidebar-logo {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-logo img {
    max-width: 140px;
}

.sidebar-nav {
    padding: 20px 0;
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.nav-link.active {
    background: rgba(230, 126, 34, 0.1);
    color: var(--primary);
    border-left-color: var(--primary);
}

.nav-link i {
    width: 20px;
    text-align: center;
}

/* Main Content */
.client-main {
    flex: 1;
    margin-left: 260px;
    padding: 40px;
    max-width: 1400px;
}

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

.page-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 8px;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(230, 126, 34, 0.4);
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

/* Stats / Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px 16px;
    background: #081017;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: border-color 0.2s;
}

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

/* Badge Styles */
.badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Authentication Pages (Login) */
.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top right, #1a2f42, #0b1622);
    padding: 20px;
    min-height: 100vh;
}

.auth-container {
    background: rgba(16, 29, 46, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 50px 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    text-align: center;
}

.auth-logo {
    margin-bottom: 30px;
}

.auth-logo img {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(230, 126, 34, 0.2));
}

.auth-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #8896a7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 0.95rem;
}

.auth-container .btn-primary {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 10px;
    background: linear-gradient(90deg, #e67e22, #d35400);
    border: none;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
    cursor: pointer;
    border-radius: 12px;
    color: white;
    transition: transform 0.2s, box-shadow 0.2s;
}

.auth-container .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

.auth-container .form-group {
    text-align: left;
}

.auth-container .form-group input {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 1024px) {
    .client-sidebar { width: 80px; }
    .client-sidebar .nav-link span, .client-sidebar .sidebar-logo img { display: none; }
    .client-sidebar .nav-link { justify-content: center; padding: 20px; }
    .client-main { margin-left: 80px; padding: 20px; }
}

@media (max-width: 768px) {
    body { flex-direction: column; overflow-x: hidden; }
    .client-sidebar { width: 100%; height: auto; position: relative; top: auto; left: auto; }
    .sidebar-nav { display: flex; flex-direction: row; overflow-x: auto; }
    .client-main { margin-left: 0; }
}
