/* Custom Style for Sistema Gestion Asistencia - Funcionarios */

:root {
    --primary-color: #004e92;
    --secondary-color: #000428;
    --accent-color: #00c6ff;
    --text-color: #333;
    --light-bg: #f4f6f9;
    --sidebar-bg: #1a1c23;
    --card-hover-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--light-bg);
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Welcome Hero */
.welcome-hero {
    background: #ffffff;
    border-bottom: 4px solid var(--accent-color);
}

.welcome-hero h1 {
    background: -webkit-linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar Personalization */
.navbar.bg-warning {
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-bottom: none;
}

.navbar-brand {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1rem;
    color: #fff !important;
}

.navbar-text {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
}

/* Sidebar Customization */
#sidebar-wrapper {
    background-color: var(--sidebar-bg) !important;
    border-right: none !important;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.05);
}

.sidebar-heading {
    background-color: rgba(0, 0, 0, 0.2) !important;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color) !important;
}

#sidebar-wrapper .list-group-item {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: none;
    transition: all 0.3s;
}

#sidebar-wrapper .list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding-left: 1.5rem;
}

/* Dashboard Cards */
.feature-item {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.02);
    /* Very subtle border */
    border-radius: 24px;
    /* More rounded -> Friendlier */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Softer easing */
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
    /* Initial soft shadow */
}

/* Gradient Top Bar on Cards */
.feature-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    z-index: 2;
    border-radius: 24px 24px 0 0;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    /* Soft deep shadow */
}

.card-body {
    padding: 2.5rem 1.5rem;
    /* More whitespace */
}

.feature-icon {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 78, 146, 0.08) 0%, rgba(0, 198, 255, 0.08) 100%);
    padding: 24px;
    border-radius: 35%;
    /* Squircle / Soft round */
    width: 100px;
    height: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.5);
}

.feature-item:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: #fff;
    transform: rotate(10deg) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 78, 146, 0.2);
    border-radius: 50%;
    /* Circle on hover */
}

.card-title {
    font-weight: 700;
    color: #444;
    /* Weaker contrast than black -> Friendlier */
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    min-height: 3rem;
    /* Align titles */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Buttons */
.btn-custom {
    border-radius: 50px;
    /* Full pill */
    padding: 0.7rem 2.5rem;
    /* Larger touch target */
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border: none;
    font-weight: 600;
    letter-spacing: 1px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 198, 255, 0.25);
    transition: all 0.3s ease;
}

.btn-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 78, 146, 0.35);
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    color: white;
}

/* Typography headers */
h1.display-5 {
    color: var(--primary-color);
    font-weight: 800 !important;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

p.lead {
    font-weight: 400;
    color: #777;
    font-size: 1.1rem;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f4f6f9;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 5px;
    border: 3px solid #f4f6f9;
    /* Padding effect */
}

::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}
/* Soft Background Badges */
.bg-soft-success {
    background-color: rgba(40, 167, 69, 0.15) !important;
    color: #28a745 !important;
}

.bg-soft-danger {
    background-color: rgba(220, 53, 69, 0.15) !important;
    color: #dc3545 !important;
}

.bg-soft-primary {
    background-color: rgba(0, 123, 255, 0.15) !important;
    color: #007bff !important;
}

.bg-soft-warning {
    background-color: rgba(255, 193, 7, 0.15) !important;
    color: #856404 !important;
}

.bg-soft-info {
    background-color: rgba(23, 162, 184, 0.15) !important;
    color: #17a2b8 !important;
}
