/* static/css/custom.css */

/* --- Import a Professional Google Font --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* --- Define Color Palette as CSS Variables --- */
:root {
    --primary-color: #0d6efd; /* Vibrant Blue for primary actions */
    --secondary-color: #6c757d; /* Muted Grey for secondary text */
    --background-color: #f8f9fa; /* Light Grey for the main background */
    --surface-color: #ffffff; /* White for card backgrounds */
    --text-color: #212529; /* Dark Grey for body text */
    --heading-color: #343a40; /* Slightly darker for headings */
    --accent-color: #17a2b8; /* Teal for accents and highlights */
    --success-color: #28a745; /* Green for success states */
    --danger-color: #dc3545; /* Red for danger/delete actions */
    --warning-color: #ffc107; /* Yellow for warnings */

    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.12);
    --border-radius: 0.5rem;
}

/* --- Global Styles --- */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    font-weight: 600;
}

/* --- NEW: Hero Section with Background Image --- */
.hero-section {
  position: relative;
  padding: 6rem 2rem;
  margin-bottom: 3rem;
  /* The background-image property is now set in the dashboard template */
  background-size: cover;
  background-position: center center;
  border-radius: 0;
  color: white;
  text-align: center;
  overflow: hidden; /* To contain the overlay */
}

/* Add a dark overlay to make the text readable */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(44, 62, 80, 0.7); /* Dark blue overlay */
  z-index: 1;
}

/* Ensure content is above the overlay */
.hero-section .container {
  position: relative;
  z-index: 2;
}

/* Override default heading/text colors for the hero section */
.hero-section h1, .hero-section p {
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* --- Card Styling Overhaul --- */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease-in-out;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}
.card-header {
    font-weight: 600;
    border-bottom: 1px solid #e9ecef;
}

/* --- Button Styling --- */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease-in-out;
}
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.25);
}


/* --- List Group Styling --- */
.list-group-item {
    border-radius: var(--border-radius) !important; /* Overriding Bootstrap's default */
    margin-bottom: 0.5rem;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease-in-out;
}
.list-group-item-action:hover {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    transform: translateX(5px);
}


/* --- Custom Dashboard Card Styles --- */
.dashboard-stat-card {
    background-color: var(--surface-color);
    border-left: 5px solid var(--primary-color);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.dashboard-stat-card .stat-value {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}
.dashboard-stat-card .stat-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--secondary-color);
}

.dashboard-stat-card.card-completed {
    border-left-color: var(--success-color);
}
.dashboard-stat-card.card-completed .stat-value {
    color: var(--success-color);
}

.dashboard-stat-card.card-total {
    border-left-color: var(--accent-color);
}
.dashboard-stat-card.card-total .stat-value {
    color: var(--accent-color);
}

/* --- Quick Action Cards on Dashboard --- */
.quick-action-card {
    color: white; /* Explicitly set text color to white */
}
.quick-action-card h4, .quick-action-card p, .quick-action-card i {
    color: white; /* Ensure all child elements are also white */
}

/* --- Login Page Styles --- */
.login-page-wrapper main.container {
    max-width: 100% !important;
    padding: 0 !important;
}

.login-card {
    border-radius: 1rem !important;
}

.login-banner-bg {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.login-banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-logo {
    max-width: 120px;
    height: auto;
    filter: brightness(0) invert(1); /* Makes a dark logo white */
}

.btn-user {
    font-size: 0.8rem;
    border-radius: 10rem;
    padding: 0.75rem 1rem;
}