/**
 * Automated Life Connect - Unified Theme
 * Brand colours from ALC platform
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

* {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

body {
    --main-5: #0c9dc5 !important;
    --color-orange: #0c9dc5 !important;
    background-color: #ffffff !important;
}

/* Header */
body > header {
    background: linear-gradient(135deg, #0c9dc5, #5f52a0) !important;
    border-bottom: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

body > header > nav {
    background-color: transparent !important;
}

body > header a,
body > header span,
body > header .ph {
    color: #ffffff !important;
}

body > header a.oppose {
    color: rgba(255, 255, 255, 0.9) !important;
}

body > header a.oppose:hover {
    color: #ffffff !important;
}

/* Logo */
#logo {
    font-size: 0 !important;
    min-width: 200px !important;
    height: 40px !important;
    display: inline-block !important;
    position: relative !important;
    background: url('/images/alc-logo-white.png') no-repeat left center !important;
    background-size: contain !important;
}

#logo span {
    display: none !important;
}

#logo::before {
    display: none !important;
}

/* Login/welcome page uses dark logo on light background */
body.welcome #logo {
    background-image: url('/images/alc-logo.png') !important;
}

/* Sidebar */
aside {
    background-color: #f8fafc !important;
    border-right: 1px solid #e2e8f0 !important;
}

aside nav a {
    color: #3f4c52 !important;
    padding: 12px 20px !important;
    margin: 3px 10px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
}

aside nav a:hover {
    background-color: #e2e8f0 !important;
    color: #1e293b !important;
}

aside nav a.current {
    background-color: #0c9dc5 !important;
    color: #ffffff !important;
}

aside nav a.current i,
aside nav a.current .ph {
    color: #ffffff !important;
}

aside nav a i,
aside nav a .ph {
    color: #64748b !important;
}

/* Content */
body > content {
    background-color: #f8fafc !important;
}

/* Buttons */
.btn, button.btn,
input[type="submit"] {
    background-color: #0c9dc5 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.btn:hover, button.btn:hover,
input[type="submit"]:hover {
    background-color: #0b87ab !important;
    transform: translateY(-1px) !important;
}

.btn.secondary {
    background-color: #5f52a0 !important;
}

.btn.secondary:hover {
    background-color: #4e4389 !important;
}

.btn.tertiary {
    background-color: #ef4444 !important;
}

/* Tables */
table {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

table thead {
    background-color: #f1f5f9 !important;
}

table th {
    padding: 12px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

table td {
    padding: 12px !important;
    color: #475569 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-size: 14px !important;
}

table tbody tr:hover {
    background-color: #f8fafc !important;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
select,
textarea {
    padding: 8px 12px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    background-color: #ffffff !important;
    transition: border-color 0.2s ease !important;
}

input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    border-color: #0c9dc5 !important;
    box-shadow: 0 0 0 3px rgba(12, 157, 197, 0.12) !important;
}

label {
    color: #334155 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* Links - exclude sidebar nav */
a:not(.btn):not(#logo):not(header a):not(content > nav a) {
    color: #0c9dc5 !important;
}

a:not(.btn):not(#logo):not(header a):not(content > nav a):hover {
    color: #0b87ab !important;
}

/* Headings */
h1 { color: #1e293b !important; font-weight: 700 !important; }
h2 { color: #1e293b !important; font-weight: 600 !important; }
h3 { color: #334155 !important; font-weight: 600 !important; }

/* Cards */
.card {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

/* Badges */
.badge-primary {
    background-color: #0c9dc5 !important;
    color: #ffffff !important;
}

/* Welcome/Login */
body.welcome {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
}

body.welcome::after {
    background-image: none !important;
    display: none !important;
}

/* Sidebar nav - restyle from default */
content > nav {
    background-color: #f8fafc !important;
    background-image: none !important;
    border-right: 1px solid #e2e8f0 !important;
    border-radius: 0 !important;
}

content > nav a {
    color: #3f4c52 !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
}

content > nav a:hover {
    background-color: #e2e8f0 !important;
}

content > nav a.current,
content > nav a.current:hover {
    background-color: #0c9dc5 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

content > nav a.current i,
content > nav a.current .ph {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

content > nav a i,
content > nav a .ph {
    color: #64748b !important;
}

body.welcome .card {
    max-width: 420px !important;
    margin: 60px auto !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* Mobile menu */
#menu {
    color: #ffffff !important;
}

p, span, div {
    color: #475569;
}

small {
    color: #64748b !important;
}
