/**
 * Ainul LinkApp - Neumorphic Base Stylesheet
 * Soft UI Design System
 */

/* ========== RESET & BASE ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --neu-bg: #E0E5EC;
    --neu-light: #ffffff;
    --neu-shadow: #a3b1c6;
    --primary: #6C5CE7;
    --primary-light: #a29bfe;
    --dark: #2d3436;
    --gray: #636e72;
    --gray-light: #94a3b8;
    --success: #38a169;
    --danger: #e53e3e;
    --warning: #d69e2e;
}

body { font-family: 'Poppins', sans-serif; background: var(--neu-bg); color: #475569; line-height: 1.6; }
a { text-decoration: none; color: inherit; }

/* Neumorphic Utilities */
.neu-raised { background: var(--neu-bg); box-shadow: 9px 9px 16px var(--neu-shadow), -9px -9px 16px var(--neu-light); }
.neu-pressed { background: var(--neu-bg); box-shadow: inset 6px 6px 12px var(--neu-shadow), inset -6px -6px 12px var(--neu-light); }
.neu-card { background: var(--neu-bg); box-shadow: 7px 7px 14px #bec4cf, -7px -7px 14px #ffffff; }
.neu-btn-sm { background: var(--neu-bg); box-shadow: 4px 4px 8px #bec4cf, -4px -4px 8px #ffffff; }
.neu-btn-sm:active { box-shadow: inset 2px 2px 5px #bec4cf, inset -2px -2px 5px #ffffff; }
.neu-convex { background: linear-gradient(145deg, #f0f4f9, #cacfd4); box-shadow: 6px 6px 12px var(--neu-shadow), -6px -6px 12px var(--neu-light); }
.neu-pressed-sm { background: var(--neu-bg); box-shadow: inset 3px 3px 6px var(--neu-shadow), inset -3px -3px 6px var(--neu-light); }

.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* ========== AUTH PAGES ========== */
.auth-body { background: var(--neu-bg); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-container { width: 100%; max-width: 420px; }
.auth-card { padding: 40px 35px; border-radius: 25px; }
.auth-header { text-align: center; margin-bottom: 30px; }
.auth-logo { width: 60px; height: 60px; border-radius: 15px; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px; color: var(--primary); font-size: 28px; }
.auth-header h1 { font-size: 22px; font-weight: 700; color: #1e293b; }
.auth-header p { color: var(--gray-light); font-size: 14px; margin-top: 5px; }
.auth-form .form-group { margin-bottom: 18px; }
.auth-form label { display: block; font-size: 13px; font-weight: 600; color: #64748b; margin-bottom: 6px; }

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%; padding: 12px 15px; border: none; border-radius: 12px;
    font-family: 'Poppins', sans-serif; font-size: 14px; outline: none;
    background: var(--neu-bg);
    box-shadow: inset 3px 3px 6px var(--neu-shadow), inset -3px -3px 6px var(--neu-light);
    color: #334155; transition: all 0.3s ease;
}
.auth-form input:focus { box-shadow: inset 4px 4px 8px var(--neu-shadow), inset -4px -4px 8px var(--neu-light), 0 0 0 2px rgba(108,92,231,0.2); }
.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--gray-light); }
.auth-footer a { color: var(--primary); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* ========== ALERTS ========== */
.alert { padding: 12px 18px; border-radius: 15px; margin-bottom: 20px; font-size: 14px; font-weight: 500; }
.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }
.alert p { margin-bottom: 4px; }
.alert p:last-child { margin-bottom: 0; }

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border: none; border-radius: 15px;
    font-family: 'Poppins', sans-serif; font-size: 14px;
    font-weight: 600; cursor: pointer; outline: none; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn:active { transform: scale(0.95); }
.btn-primary { 
    background: linear-gradient(135deg, var(--primary), var(--primary-light)); 
    color: #fff; 
    box-shadow: 4px 4px 10px rgba(108,92,231,0.3); 
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 6px 6px 15px rgba(108,92,231,0.4); }

.btn-creative {
    background: linear-gradient(45deg, #6C5CE7, #a29bfe, #6C5CE7);
    background-size: 200% auto;
    color: #fff;
    box-shadow: 0 4px 15px rgba(108,92,231,0.4);
    animation: gradientShift 3s ease infinite;
}
.btn-creative:hover { background-position: right center; transform: scale(1.05); }

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-outline { background: var(--neu-bg); color: var(--primary); box-shadow: 4px 4px 8px #bec4cf, -4px -4px 8px #ffffff; }
.btn-outline:hover { color: var(--primary); transform: translateY(-2px); }
.btn-outline:active { box-shadow: inset 2px 2px 5px #bec4cf, inset -2px -2px 5px #ffffff; }
.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 12px; }

.btn-icon {
    width: 34px; height: 34px; border: none; border-radius: 10px;
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    background: var(--neu-bg); box-shadow: 4px 4px 8px #bec4cf, -4px -4px 8px #ffffff;
    color: #94a3b8; font-size: 18px; transition: all 0.2s ease;
}
.btn-icon:hover { color: var(--primary); }
.btn-icon.btn-danger:hover { color: var(--danger); }
.btn-icon:active { box-shadow: inset 2px 2px 5px #bec4cf, inset -2px -2px 5px #ffffff; }
.btn-icon:disabled { opacity: 0.3; cursor: not-allowed; }

/* ========== DASHBOARD LAYOUT ========== */
.dashboard-wrapper { display: flex; min-height: 100vh; padding: 20px; gap: 20px; }

/* ========== SIDEBAR ========== */
.sidebar {
    width: 240px; border-radius: 20px; display: flex; flex-direction: column;
    justify-content: space-between; padding: 24px 16px; flex-shrink: 0;
    position: sticky; top: 20px; height: calc(100vh - 40px);
}
.sidebar-header { padding: 0 8px 20px; }
.sidebar-logo { display: flex; align-items: center; gap: 10px; }
.sidebar-logo .logo-icon {
    width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center;
    justify-content: center; color: var(--primary); font-size: 22px;
}
.sidebar-logo span { font-size: 17px; font-weight: 700; color: #1e293b; }
.sidebar-logo small { display: block; font-size: 10px; color: var(--gray-light); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; }

.sidebar-nav { flex: 1; margin-top: 10px; }
.nav-item {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    border-radius: 15px; color: #94a3b8; font-size: 14px; font-weight: 500;
    transition: all 0.2s ease; margin-bottom: 6px;
}
.nav-item:hover { color: var(--primary); }
.nav-item.active { color: var(--primary); font-weight: 600;
    box-shadow: inset 6px 6px 12px var(--neu-shadow), inset -6px -6px 12px var(--neu-light); }

.sidebar-user {
    display: flex; align-items: center; gap: 10px; padding: 12px;
    border-radius: 15px; margin-bottom: 10px;
}
.user-avatar {
    width: 40px; height: 40px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-weight: 700;
    font-size: 16px; color: var(--primary); border: 2px solid var(--neu-light);
}
.user-info { overflow: hidden; }
.user-name { font-weight: 700; font-size: 12px; color: #1e293b; }
.user-email { font-size: 10px; color: var(--gray-light); }

.sidebar-footer { padding-top: 10px; }
.logout-btn:hover { color: var(--danger) !important; }
.sidebar-toggle {
    display: none; position: fixed; top: 15px; left: 15px; z-index: 200;
    width: 45px; height: 45px; border: none; border-radius: 15px;
    background: var(--neu-bg); color: var(--primary); font-size: 22px;
    cursor: pointer; box-shadow: 4px 4px 8px #bec4cf, -4px -4px 8px #ffffff;
}
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 90; }
