/* PaperPK Portal Custom Styles */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header Styles */
header .form-control {
    border-radius: 20px;
}

header .btn {
    border-radius: 20px;
}

/* Navigation Styles */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #ffc107 !important;
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 2px 10px 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 5px 20px rgba(0,0,0,0.15);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    font-weight: 600;
}

/* Job Card Styles */
.job-card {
    border-left: 4px solid var(--primary-color);
}

.tender-card {
    border-left: 4px solid var(--success-color);
}

.notice-card {
    border-left: 4px solid var(--warning-color);
}

.featured {
    position: relative;
}

.featured::before {
    content: 'FEATURED';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--danger-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Badge Styles */
.badge {
    font-size: 0.75rem;
    padding: 5px 10px;
}

/* Filter Sidebar */
.filter-sidebar .card {
    margin-bottom: 15px;
}

.filter-sidebar .btn-group {
    margin-bottom: 10px;
}

/* Pagination Styles */
.pagination .page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Search Results */
.search-highlight {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Date Styles */
.date-posted {
    color: #6c757d;
    font-size: 0.9rem;
}

.deadline {
    color: var(--danger-color);
    font-weight: 600;
}

/* Stats Cards */
.stats-card {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
}

.stats-card .stats-number {
    font-size: 2rem;
    font-weight: bold;
}

.stats-card .stats-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header-search {
        margin-top: 10px;
    }
    
    .stats-card {
        margin-bottom: 15px;
    }
    
    .card-body {
        padding: 15px;
    }
}

/* Loading Spinner */
.loading {
    text-align: center;
    padding: 20px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 8px;
}

/* Button Styles */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Form Styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Table Styles */
.table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background: var(--light-color);
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

/* Newspaper Icons Styles */
.newspaper-icon {
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 8px;
}

.newspaper-icon:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.newspaper-logo {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #e9ecef;
    transition: all 0.3s ease;
}

.newspaper-icon:hover .newspaper-logo {
    background-color: #007bff;
    color: white;
}

/* Footer Styles */
footer a {
    color: #adb5bd;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
}

.social-links a {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
}

/* Admin Panel Styles */
.admin-sidebar {
    background: #2c3e50;
    min-height: 100vh;
}

.admin-sidebar .nav-link {
    color: #ecf0f1;
    padding: 12px 20px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: #34495e;
    color: white;
}

.admin-content {
    background: #f8f9fa;
    min-height: 100vh;
}

/* Custom Page Styles */
.page-content {
    line-height: 1.8;
}

.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

/* Print Styles */
@media print {
    .navbar,
    .sidebar,
    footer,
    .btn,
    .pagination {
        display: none !important;
    }
    
    .container {
        width: 100%;
        margin: 0;
        padding: 0;
    }
}
