/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-color: #050505; /* Deep black for ultra-premium feel */
    --surface-color: #121212; /* Dark grey for cards */
    --surface-border: #262626;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    
    /* Raven AfriKulture Colors */
    --primary-color: #753ba6; /* Raven Purple */
    --primary-hover: #8f4dc7;
    --accent-color: #f45a68; /* AfriKulture Coral */
    --accent-hover: #ff7380;
    
    --danger-color: #ff4b4b;
    --success-color: #00d26a;
    --warning-color: #ffb703;
    
    --border-radius: 12px;
    --border-radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Subtle background glow effects */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(117, 59, 166, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(244, 90, 104, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.03em;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

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

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.split-left {
    flex: 1;
    background: linear-gradient(135deg, rgba(117, 59, 166, 0.2), rgba(244, 90, 104, 0.1)), url('https://images.unsplash.com/photo-1493225457124-a1a2a5f5f92e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
}

.split-left::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(5,5,5,0.2), var(--bg-color));
}

.split-left-content {
    position: relative;
    z-index: 10;
    max-width: 500px;
}

.split-left h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.split-left p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
}

.split-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
}

.form-wrapper {
    width: 100%;
    max-width: 480px;
}

.form-wrapper.wide {
    max-width: 700px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control::placeholder {
    color: #555;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(117, 59, 166, 0.15);
    background: #181818;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), #8e44ad);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(117, 59, 166, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--surface-border);
    color: var(--text-primary);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    box-shadow: none;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: none;
}
.alert.show {
    display: block;
    animation: slideDown 0.3s ease;
}
.alert-error {
    background: rgba(255, 75, 75, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(255, 75, 75, 0.2);
}
.alert-success {
    background: rgba(0, 210, 106, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(0, 210, 106, 0.2);
}

/* Dashboard Specific Layout */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: 280px;
    background: var(--bg-color);
    border-right: 1px solid var(--surface-border);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
}

.app-sidebar .logo {
    margin-bottom: 3rem;
}
.app-sidebar .logo img {
    height: 35px;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    background: var(--surface-color);
    color: var(--text-primary);
}

.nav-link.active {
    border-left: 3px solid var(--primary-color);
}

.app-main {
    flex: 1;
    padding: 3rem 4rem;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--surface-border);
}
.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Cards & Widgets */
.premium-card {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.premium-card:hover {
    border-color: rgba(117, 59, 166, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: var(--transition);
}
.premium-card:hover::before {
    opacity: 1;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media(max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .split-layout { flex-direction: column; }
    .split-left { padding: 4rem 2rem; min-height: 40vh; }
    .app-main { padding: 2rem; }
}
@media(max-width: 768px) {
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr !important; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .premium-card-flex { flex-direction: column !important; text-align: center; }
    .dashboard-layout { flex-direction: column; }
    .app-sidebar { width: 100%; height: auto; position: static; padding: 1.5rem; border-right: none; border-bottom: 1px solid var(--surface-border); }
    .top-bar { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-pending { background: rgba(255, 183, 3, 0.1); color: var(--warning-color); border: 1px solid rgba(255, 183, 3, 0.2); }
.status-approved { background: rgba(0, 210, 106, 0.1); color: var(--success-color); border: 1px solid rgba(0, 210, 106, 0.2); }
.status-rejected { background: rgba(255, 75, 75, 0.1); color: var(--danger-color); border: 1px solid rgba(255, 75, 75, 0.2); }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
