@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #d93a3a;
    --primary-dark: #b32d2d;
    --primary-darker: #8b0000;
    --secondary-color: #6c757d;
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --text-color: #333333;
    --text-muted: #777777;
    --border-radius: 16px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* Header Styles */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    padding: 15px 0;
    position: relative;
    z-index: 100;
}

.navbar-brand {
    font-weight: 800;
    font-size: 26px;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.navbar-nav .nav-link {
    color: #555;
    font-weight: 600;
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(217, 58, 58, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Welcome Section */
.welcome-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 50px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border: none;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(217, 58, 58, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    background: #f0f2f5;
    color: #555;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.welcome-badge i {
    color: var(--primary-color);
    margin-right: 8px;
}

.welcome-card h1 {
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-size: 2.5rem;
    letter-spacing: -1px;
}

.welcome-card h1 span {
    color: #777;
    font-weight: 400;
}

.welcome-card p {
    color: #777;
    font-size: 1.15rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.status-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    background: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    border: 1px solid #eee;
    transition: var(--transition);
}

.status-badge:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.status-badge i {
    margin-right: 10px;
}

.status-badge i.fa-shield-check {
    color: var(--primary-color);
}

.status-badge i.fa-headset {
    color: #555;
}

.status-badge i.fa-lock {
    color: #28a745;
}

/* Stats Cards */
.stats-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: var(--transition);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.stats-card .icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    background: #f8f9fa;
    color: #333;
}

.stats-card .count {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 5px;
    line-height: 1;
}

.stats-card .label {
    color: #888;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 25px;
}

.stats-card .card-link {
    margin-top: auto;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #f5f5f5;
}

.stats-card .card-link:hover {
    color: var(--primary-dark);
}

/* Quick Actions */
.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    color: #333;
}

.section-title span {
    background: #e9ecef;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-left: 10px;
    color: #555;
}

.action-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    border: 1px solid transparent;
    height: 100%;
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(217, 58, 58, 0.1);
}

.action-card .icon-wrapper {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 20px;
    color: #555;
    transition: var(--transition);
}

.action-card:hover .icon-wrapper {
    background: var(--primary-color);
    color: #fff;
}

.action-card .content h5 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #1a1a1a;
}

.action-card .content p {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
    line-height: 1.4;
}

.action-card .arrow {
    margin-left: auto;
    color: #ddd;
    transition: var(--transition);
}

.action-card:hover .arrow {
    transform: translateX(5px);
    color: var(--primary-color);
}

/* Panels (Widgets) Styling */
.card {
    border: none;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.card-header {
    background: #fff;
    border-bottom: 1px solid #f5f5f5;
    padding: 20px 25px;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
}

.card-title i {
    margin-right: 10px;
    color: #555;
}

.card-body {
    padding: 25px;
}

.list-group-item {
    border: none;
    border-bottom: 1px solid #f5f5f5;
    padding: 15px 25px;
    color: #555;
    font-weight: 500;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item:hover {
    background-color: #fcfcfc;
    color: var(--primary-color);
}

/* Footer Styles */
.footer {
    background-color: #1a1e23;
    padding: 60px 0 30px;
    margin-top: 80px;
    color: #a0a0a0;
}

.footer h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul li a {
    color: #a0a0a0;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.9rem;
}

/* Login Page */
.login-container {
    max-width: 450px;
    margin: 50px auto;
    background: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    font-weight: 800;
    color: #1a1a1a;
}

.form-control {
    height: 50px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    padding: 0 20px;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(217, 58, 58, 0.1);
}

/* Custom Colors for Icons */
.bg-blue-light {
    background: #e3f2fd;
    color: #1976d2;
}

.bg-green-light {
    background: #e8f5e9;
    color: #388e3c;
}

.bg-purple-light {
    background: #f3e5f5;
    color: #7b1fa2;
}

.bg-orange-light {
    background: #fff3e0;
    color: #f57c00;
}