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

:root {
    --primary-color: #2563eb;
    --secondary-color: #3b82f6;
    --accent-color: #06b6d4;
    --bg-color: #f8fafc;
    --text-color: #334155;
    --heading-color: #1e293b;
    --card-bg: rgba(255, 255, 255, 0.85);
    /* Slightly more transparent */
    --glass-border: 1px solid rgba(255, 255, 255, 0.6);
    --shadow-soft: 0 10px 40px -10px rgba(148, 163, 184, 0.2);
    --shadow-hover: 0 20px 50px -10px rgba(148, 163, 184, 0.3);
}

body {
    font-family: 'Prompt', 'Outfit', sans-serif;
    /* More complex modern gradient */
    background: radial-gradient(at top left, #e0f2fe, transparent),
        radial-gradient(at top right, #f0f9ff, transparent),
        radial-gradient(at bottom left, #e0e7ff, transparent),
        #f8fafc;
    background-attachment: fixed;
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Glassmorphism Card Enhanced */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--glass-border);
    border-radius: 24px;
    /* More rounded */
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-hover);
}

.glass-card:hover::before {
    opacity: 1;
}

/* Navbar Modernization */
.navbar {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar-brand {
    font-weight: 800;
    color: var(--heading-color) !important;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.navbar-brand span {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 25%, #06b6d4 50%, #3b82f6 75%, #2563eb 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    position: relative;
    filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.2));
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }
}

.navbar-brand span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    transition: width 0.3s ease;
}

.navbar-brand:hover span::after {
    width: 100%;
}

.navbar-brand:hover span {
    animation: gradientShift 1.5s ease infinite;
}

.navbar-logos {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-logos:hover {
    transform: scale(1.05);
}

.navbar-brand i {
    color: var(--primary-color);
    filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.3));
}

/* DataTables Styling Override Enhanced */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    font-family: 'Prompt', sans-serif;
    color: var(--text-color);
    margin: 1.5rem 0;
}

table.dataTable {
    border-collapse: separate !important;
    /* Allow border-radius on rows */
    border-spacing: 0 10px !important;
    /* Spacing between rows */
}

table.dataTable thead th {
    background-color: transparent;
    border-bottom: none !important;
    color: var(--text-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    opacity: 0.7;
    padding-bottom: 1rem;
}

table.dataTable tbody tr {
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    /* Rounded rows */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

table.dataTable tbody tr td {
    border-top: none !important;
    border-bottom: none !important;
    padding: 1.5rem 1rem !important;
    vertical-align: middle;
}

table.dataTable tbody tr td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

table.dataTable tbody tr td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

table.dataTable tbody tr:hover {
    transform: scale(1.005);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    background-color: white !important;
    /* Override default hover */
    z-index: 10;
    position: relative;
}

/* Buttons Modern */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50px;
    /* Fully, pill rounded */
    padding: 12px 32px;
    font-weight: 600;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.5);
    color: white;
    filter: brightness(1.1);
}

.btn-primary-custom:active {
    transform: translateY(-1px);
}

/* Search Box Modern */
.search-container {
    position: relative;
}

.search-container input {
    border: 2px solid transparent;
    background: white;
    padding: 18px 25px;
    padding-left: 55px;
    /* Space for icon */
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    width: 100%;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.search-container i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.2rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.search-container input:focus {
    outline: none;
    background: white;
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.search-container input:focus+i {
    color: var(--primary-color);
}

/* Hero Section Modern */
.hero-section {
    padding: 5rem 0;
    text-align: center;
    position: relative;
}

.hero-title {
    font-weight: 900;
    font-size: 3.5rem;
    line-height: 1.2;
    background: -webkit-linear-gradient(120deg, #1e40af, #2563eb, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Badge styling */
.badge {
    padding: 0.5em 1em;
    font-weight: 500;
    border-radius: 8px;
    letter-spacing: 0.5px;
}

/* Timeline Modern */
.timeline {
    border-left: 3px solid #e2e8f0;
    margin-left: 15px;
    padding-left: 30px;
    position: relative;
    margin-top: 40px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 5px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background-color: white;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
}

.timeline-item:hover::before {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.2);
}

.timeline-item.active::before {
    background-color: #ef4444;
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.timeline-date {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

/* OASSAR Logo Animations */
.logo-container {
    display: inline-block;
    position: relative;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

.oassar-logo {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(37, 99, 235, 0.3));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 10px 30px rgba(37, 99, 235, 0.3));
    }

    100% {
        filter: drop-shadow(0 15px 40px rgba(37, 99, 235, 0.5));
    }
}

.oassar-logo:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 20px 50px rgba(37, 99, 235, 0.6));
}

/* Logo pulse effect on page load */
@keyframes logoPulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.logo-container {
    animation: logoFloat 3s ease-in-out infinite, logoPulse 1s ease-out;
}

/* Responsive logo size */
@media (max-width: 768px) {
    .oassar-logo {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .oassar-logo {
        width: 120px;
    }
}

/* Status Indicators - Beautiful Animated */
.text-success {
    color: #10b981 !important;
    filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.4));
}

.text-danger {
    color: #ef4444 !important;
    filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.4));
}

/* Pulsing Animation for Status Icons */
@keyframes pulse-success {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes pulse-danger {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.85;
        transform: scale(1.15);
    }
}

.fa-circle.text-success {
    animation: pulse-success 2s ease-in-out infinite;
}

.fa-circle.text-danger {
    animation: pulse-danger 1.5s ease-in-out infinite;
}

/* Hover effect for status icons */
.fa-circle:hover {
    transform: scale(1.3);
    transition: transform 0.2s ease;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .glass-card {
        padding: 1.5rem;
        border-radius: 16px;
    }



    .navbar-brand {
        font-size: 1.1rem;
        white-space: nowrap;
        margin-right: 0;
        max-width: calc(100% - 70px);
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .navbar-logos {
        height: 35px;
    }
    
    .navbar-toggler {
        flex-shrink: 0;
        padding: 0.3rem 0.6rem;
    }

    table.dataTable tbody tr td {
        display: block;
        /* Stack table cells */
        text-align: left;
        padding: 0.8rem 1rem !important;
        border: none;
    }

    table.dataTable thead {
        display: none;
        /* Hide header on mobile if simpler */
    }

    table.dataTable tbody tr td:before {
        /* Optional: add labels if needed via data-label attributes */
        content: attr(data-label);
        font-weight: bold;
        display: inline-block;
        margin-right: 0.5rem;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        font-size: 0.95rem;
        gap: 0.3rem;
    }
    .navbar-logos {
        height: 30px;
    }
    .oassar-logo {
        width: 120px;
    }
}