/**
 * SPB3 Web Publish Request System
 * Main Stylesheet
 */

/* ===== Base ===== */
* {
    font-family: 'Prompt', sans-serif;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: #f8f9fa;
    overflow-x: hidden;
}

/* ===== Layout Fix ===== */
.container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

/* ===== Sidebar ===== */
.sidebar {
    min-height: 100vh;
    background: linear-gradient(180deg, #1a3a5c 0%, #2a5f7a 100%);
    color: #fff;
    padding-top: 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 10px 20px;
    border-radius: 8px;
    margin: 2px 10px;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.sidebar .nav-link i {
    width: 24px;
    margin-right: 10px;
    text-align: center;
}

.sidebar .sidebar-brand {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
    flex-shrink: 0;
}

.sidebar .sidebar-brand h3 {
    font-weight: 700;
    font-size: 18px;
    margin: 0;
}

.sidebar .sidebar-brand small {
    opacity: 0.7;
    font-size: 12px;
}

.sidebar .sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
    opacity: 0.6;
    margin-top: auto;
    flex-shrink: 0;
}

/* ===== Main Content ===== */
main {
    padding-top: 20px;
    padding-bottom: 40px;
    min-height: 100vh;
}

/* ===== Navbar ===== */
.navbar {
    z-index: 1050;
    position: sticky;
    top: 0;
}

/* ===== Cards ===== */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid #e8edf2;
    padding: 16px 20px;
}

.card-body {
    padding: 20px;
}

/* ===== Stats Cards ===== */
.stats-card {
    padding: 20px;
    border-radius: 12px;
    color: #fff;
    min-height: 120px;
}

.stats-card .stats-icon {
    font-size: 36px;
    opacity: 0.5;
}

.stats-card .stats-number {
    font-size: 32px;
    font-weight: 700;
}

.stats-card .stats-label {
    font-size: 14px;
    opacity: 0.8;
}

/* ===== Tables ===== */
.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #1a3a5c;
    background: #f8f9fa;
}

.table-responsive {
    overflow-x: auto;
}

/* ===== Forms ===== */
.form-control,
.form-select {
    border-radius: 8px;
    border: 2px solid #e8edf2;
    padding: 10px 14px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #2a5f7a;
    box-shadow: 0 0 0 0.25rem rgba(42, 95, 122, 0.15);
}

label.required:after {
    content: ' *';
    color: #dc3545;
}

/* ===== Badges ===== */
.badge {
    padding: 5px 12px;
    font-weight: 500;
    border-radius: 20px;
}

/* ===== Buttons ===== */
.btn {
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #1a3a5c;
    border-color: #1a3a5c;
}

.btn-primary:hover {
    background: #2a5f7a;
    border-color: #2a5f7a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 58, 92, 0.3);
}

.btn-lg {
    padding: 12px 30px;
    font-size: 16px;
}

/* ===== Timeline ===== */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e8edf2;
}

.timeline-item {
    position: relative;
    padding: 10px 0 10px 55px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 15px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #2a5f7a;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #2a5f7a;
}

.timeline-item.timeline-success::before {
    background: #28a745;
    box-shadow: 0 0 0 3px #28a745;
}

.timeline-item.timeline-danger::before {
    background: #dc3545;
    box-shadow: 0 0 0 3px #dc3545;
}

.timeline-item.timeline-warning::before {
    background: #ffc107;
    box-shadow: 0 0 0 3px #ffc107;
}

.timeline-item .timeline-date {
    font-size: 12px;
    color: #6c757d;
}

.timeline-item .timeline-content {
    background: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
        height: auto;
        position: relative;
        padding-top: 10px;
    }
    
    .sidebar .sidebar-footer {
        position: relative;
        margin-top: 10px;
    }
    
    .stats-card .stats-number {
        font-size: 24px;
    }
    
    .timeline-item {
        padding-left: 40px;
    }
    
    .timeline-item::before {
        left: 6px;
        width: 12px;
        height: 12px;
    }
    
    .timeline::before {
        left: 12px;
    }
    
    main {
        padding-top: 10px;
        padding-bottom: 20px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ===== Misc ===== */
.bg-gradient-primary {
    background: linear-gradient(135deg, #1a3a5c, #2a5f7a);
}

.text-gold {
    color: #ffd700;
}

.file-item {
    padding: 5px 10px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 5px;
    font-size: 14px;
}

/* ===== Alert ===== */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-info {
    background: #e8f4fd;
    color: #1a3a5c;
    border-left: 4px solid #2a5f7a;
}

/* ===== Public Info Box ===== */
.public-info {
    background: #e8f4fd;
    border: 2px solid #2a5f7a;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.public-info h6 {
    color: #1a3a5c;
    font-weight: 700;
}

/* ===== Success Container ===== */
.success-container {
    text-align: center;
    padding: 30px 0;
}

.success-container .icon {
    font-size: 64px;
    color: #28a745;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #c1c7cd;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8b0b8;
}