/* assets/css/style.css */

:root {
    --primary-color: #dc3545;
    --primary-dark: #b02a37;
    --primary-light: #f8d7da;
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Custom Navbar Styling */
.navbar-dark.bg-danger {
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Card Styling */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
    border-radius: 10px 10px 0 0 !important;
}

.card-header.bg-danger {
    background-color: var(--primary-color) !important;
    color: white;
}

/* Button Styling */
.btn {
    border-radius: 5px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-danger {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-danger:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-danger {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-danger:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Table Styling */
.table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.table thead th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 1rem;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Form Styling */
.form-control {
    border-radius: 5px;
    padding: 0.6rem 1rem;
    border: 1px solid #ced4da;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Login Page */
.login-container {
    max-width: 400px;
    margin: 40px auto;
    padding: 20px;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo img {
    max-width: 150px;
    height: auto;
}

/* Dashboard Stats */
.stat-card {
    border-radius: 10px;
    padding: 20px;
    color: white;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.stat-card .stat-icon {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 4rem;
    opacity: 0.3;
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0;
}

.stat-card .stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
}

.bg-gradient-danger {
    background: linear-gradient(45deg, var(--primary-color), #e35d6a);
}

.bg-gradient-info {
    background: linear-gradient(45deg, #0dcaf0, #5cdaff);
}

.bg-gradient-success {
    background: linear-gradient(45deg, #198754, #27ae60);
}

.bg-gradient-warning {
    background: linear-gradient(45deg, #ffc107, #ffda79);
}

/* Timeline for tracking progress */
.timeline {
    border-left: 3px solid var(--primary-color);
    position: relative;
    list-style: none;
    padding: 0 0 0 40px;
    margin: 0;
}

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

.timeline .timeline-item:last-child {
    margin-bottom: 0;
}

.timeline .timeline-item:before {
    content: "";
    position: absolute;
    left: -45px;
    top: 0;
    width: 25px;
    height: 25px;
    background-color: #fff;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
}

.timeline .timeline-item.active:before {
    background-color: var(--primary-color);
}

.timeline .timeline-item .timeline-date {
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.timeline .timeline-item .timeline-content {
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timeline .timeline-item .timeline-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Status badges */
.badge.bg-waiting {
    background-color: #6c757d;
}

.badge.bg-process {
    background-color: #0dcaf0;
}

.badge.bg-rejected {
    background-color: #dc3545;
}

.badge.bg-approved {
    background-color: #198754;
}

.badge.bg-revision {
    background-color: #ffc107;
    color: #212529;
}

/* Stepper */
.stepper {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.stepper .step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 0 10px;
}

.stepper .step:not(:last-child):after {
    content: "";
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #ddd;
    z-index: 1;
}

.stepper .step .step-indicator {
    width: 30px;
    height: 30px;
    background-color: #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin: 0 auto 10px;
    position: relative;
    z-index: 2;
}

.stepper .step.active .step-indicator {
    background-color: var(--primary-color);
}

.stepper .step.completed .step-indicator {
    background-color: #198754;
}

.stepper .step .step-label {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Footer */
.footer {
    margin-top: auto;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 1.5rem 0;
}

/* Animation */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsiveness */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .stat-card .stat-value {
        font-size: 2rem;
    }
    
    .timeline {
        padding-left: 30px;
    }
    
    .timeline .timeline-item:before {
        left: -35px;
        width: 20px;
        height: 20px;
    }
    
    .stepper .step .step-label {
        font-size: 0.7rem;
    }
}

/* Landing Page Styling */
.hero-section {
    background: linear-gradient(rgba(220, 53, 69, 0.9), rgba(176, 42, 55, 0.9)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    border-radius: 0 0 50% 50% / 15%;
    margin-bottom: 50px;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.feature-card {
    text-align: center;
    padding: 30px;
    margin-bottom: 30px;
}

.feature-card .feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}
