:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --dark-color: #212529;
    --light-bg: #f8f9fa;
    --card-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --card-shadow-hover: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    min-height: 100vh;
}

.navbar-custom-main {
    background: linear-gradient(120deg, #0f4f78 0%, #1a6cb8 58%, #2b4f79 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding-top: 6px;
    padding-bottom: 6px;
}

.brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.site-logo {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.3);
}

.site-logo svg {
    width: 100%;
    height: 100%;
    display: block;
}

.site-logo-image {
    width: 110px;
    height: 110px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.28));
}

.brand-text {
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.main-hero {
    background: linear-gradient(120deg, #0b5ed7 0%, #1e3a5f 60%, #163350 100%);
    padding: 52px 0;
}

.hero-intro-text {
    color: rgba(255, 255, 255, 0.92);
    max-width: 580px;
}

.main-hero-image-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.main-hero-image {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.hero-fish-image {
    background: #f4f6f8;
    object-fit: contain;
    padding: 5px;
}

.company-profile .profile-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--card-shadow);
}

.section-title {
    font-weight: 700;
    margin-bottom: 14px;
    color: #1e3a5f;
}

.company-facts ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #495057;
    border-bottom: 1px dashed #e9ecef;
}

.company-facts ul li:last-child {
    border-bottom: none;
}

.company-facts ul li i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.company-facts ul li span {
    font-weight: 600;
    color: #212529;
}

.professional-hero .hero-content-card {
    border-left: 4px solid var(--primary-color);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(13, 110, 253, 0.1);
    color: #0b5ed7;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 0.9rem;
}

.mini-stat {
    background: #f8fbff;
    border: 1px solid #e3eefc;
    border-radius: 12px;
    text-align: center;
    padding: 14px 10px;
}

.mini-stat strong {
    display: block;
    font-size: 1.1rem;
    color: #0b5ed7;
}

.mini-stat span {
    font-size: 0.84rem;
    color: #5c6b7a;
}

.hero-image-wrap {
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--card-shadow-hover);
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 340px;
    object-fit: cover;
}

.placeholder-image {
    min-height: 340px;
    background: #e9ecef;
    color: #8f9aa5;
    font-size: 3rem;
}

.service-item {
    background: #f8fbff;
    border: 1px solid #e3eefc;
    border-radius: 14px;
    padding: 18px 16px;
    height: 100%;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(13, 110, 253, 0.12);
}

.service-item i {
    font-size: 1.7rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: inline-block;
}

.service-item h6 {
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 8px;
}

.service-item p {
    color: #5c6b7a;
    font-size: 0.92rem;
    line-height: 1.5;
}

.engagement-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed #e3eefc;
    color: #324255;
    font-weight: 600;
}

.engagement-list-item:last-child {
    border-bottom: none;
}

.engagement-list-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.site-footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.footer-logo {
    width: 46px;
    height: 46px;
}

.footer-logo-image {
    width: 110px;
    height: 110px;
}

.footer-title {
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.footer-text {
    color: rgba(255, 255, 255, 0.75);
}

.footer-copy {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.92rem;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    background: linear-gradient(135deg, #1e3a5f 0%, #0d6efd 100%);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 12px 20px;
    margin: 5px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateX(5px);
}

.sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.sidebar .nav-link i {
    width: 24px;
    text-align: center;
    margin-right: 10px;
}

.main-content {
    margin-left: 250px;
    min-height: 100vh;
    padding: 20px;
}

.navbar-custom {
    background: #fff;
    box-shadow: var(--card-shadow);
    padding: 15px 25px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.card-stat {
    border: none;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.card-stat .card-body {
    padding: 25px;
}

.card-stat .icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.card-stat.fish-card .icon {
    background: rgba(13, 110, 253, 0.15);
    color: var(--primary-color);
}

.card-stat.user-card .icon {
    background: rgba(25, 135, 84, 0.15);
    color: var(--success-color);
}

.card-fish {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 100%;
}

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

.card-fish .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.fish-image-link {
    display: block;
    overflow: hidden;
}

.fish-grid-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.fish-details-image {
    width: 100%;
    height: 340px;
    object-fit: contain;
    display: block;
    background: #f5f7fa;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eef2f7;
    padding-bottom: 10px;
}

.detail-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.detail-value {
    font-size: 1.05rem;
    color: #1e3a5f;
}

main section,
.card-fish,
.main-hero-image-card,
.profile-card {
    animation: fadeUp 0.6s ease both;
}

.card-fish {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-item {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

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

.card-fish:hover .card-img-top {
    transform: scale(1.05);
}

.card-fish .card-body {
    padding: 20px;
}

.card-fish .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--success-color);
}

.table-responsive {
    background: #fff;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    padding: 20px;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    color: var(--dark-color);
    padding: 15px;
}

.table tbody td {
    vertical-align: middle;
    padding: 15px;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

.btn-action {
    width: 35px;
    height: 35px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.btn-success-gradient {
    background: linear-gradient(135deg, #20c997 0%, #198754 100%);
    border: none;
    color: #fff;
}

.btn-success-gradient:hover {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
    color: #fff;
}

.page-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #0d6efd 100%);
    color: #fff;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.fish-image-preview {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px dashed #dee2e6;
}

.drop-zone {
    border: 2px dashed #0d6efd;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    background: rgba(13, 110, 253, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: #0d6efd;
    background: rgba(13, 110, 253, 0.1);
}

.drop-zone i {
    font-size: 48px;
    color: #0d6efd;
    margin-bottom: 15px;
}

.alert-flash {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.search-box {
    position: relative;
}

.search-box input {
    padding-left: 45px;
    border-radius: 25px;
    border: 2px solid #e9ecef;
    padding: 12px 20px 12px 45px;
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.search-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
}

@media (max-width: 768px) {
    .sidebar {
        width: 0;
        overflow: hidden;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar.show {
        width: 250px;
    }

    .brand-text {
        font-size: 1.05rem;
    }

    .site-logo-image {
        width: 84px;
        height: 84px;
    }

    .footer-logo-image {
        width: 90px;
        height: 90px;
    }

    .main-hero {
        padding: 34px 0;
    }

    .main-hero-image {
        height: 250px;
    }

    .company-profile .profile-card {
        padding: 20px;
    }

    .hero-image,
    .placeholder-image {
        height: 260px;
        min-height: 260px;
    }

    .fish-details-image {
        height: 240px;
    }
}

.badge-role {
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 20px;
}

.badge-role.admin {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.badge-role.user {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.pagination-custom {
    display: flex;
    gap: 5px;
}

.pagination-custom .page-link {
    border-radius: 8px;
    border: none;
    padding: 8px 15px;
}

.pagination-custom .page-item.active .page-link {
    background: var(--primary-color);
}
