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

/* Root Variables */
:root {
    --primary: #2563eb;
    --secondary: #64748b;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --light: #f8fafc;
    --dark: #1e293b;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --border-color: var(--gray-200);
    --box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.25rem;
}

h2 {
    font-size: 1.875rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
}

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

    a:hover {
        color: darken(var(--primary), 10%);
        text-decoration: none;
    }

.hyperlink {
    text-decoration: none;
}

    .hyperlink:hover {
        text-decoration: underline;
    }

a.nostyle:link,
a.nostyle:visited {
    text-decoration: inherit;
    color: inherit;
    cursor: auto;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
    background-color: #ffffff !important;
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--dark);
    padding: 0.5rem 0;
}

.navbar-nav .nav-link {
    color: var(--gray-500);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

    .navbar-nav .nav-link:hover {
        color: var(--primary);
    }

.navbar-toggler {
    padding: 0.5rem;
    border: none;
}

    .navbar-toggler:focus {
        box-shadow: none;
    }

/* Offcanvas */
.offcanvas {
    z-index: 1045;
}

    .offcanvas .nav-link {
        padding: 0.5rem 0;
    }

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: var(--transition);
}

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

    .btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
    }

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

    .btn-outline-primary:hover {
        background-color: var(--primary);
        border-color: var(--primary);
        transform: translateY(-1px);
        box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
    }

.btn-floating.btn-lg {
    width: 2.8125rem;
    height: 2.8125rem;
    border-radius: 50%;
    padding: 0;
    position: relative;
}

/* Forms */
.form-control {
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    transition: var(--transition);
}

    .form-control:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
    }

.form-label {
    color: var(--gray-500);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.required .form-label:after {
    content: "*";
    color: red;
    margin-left: 3px;
    font-weight: bold;
}

/* Cards */
.card {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

    .card:hover {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
}

/* Containers */
.container-box {
    margin-top: 40px;
}

.container-box-bottom {
    margin-bottom: 100px;
}

/* Images */
.image-wrapper {
    width: 200px;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    margin: 10px 0;
}

    .image-wrapper img {
        width: 100%;
        min-height: 100%;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
    }

.obj-cover {
    object-fit: cover;
}

.item img {
    position: absolute;
    top: 0;
    left: 0;
    min-height: 200px;
}

/* Carousel */
.carousel-item {
    height: 350px;
}

    .carousel-item img {
        height: 350px;
    }

/* Footer */
footer {
    background-color: #ffffff !important;
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

    footer h5 {
        font-size: 1rem;
        font-weight: 600;
        color: var(--dark);
        margin-bottom: 1.25rem;
    }

    footer p {
        color: var(--gray-500);
        line-height: 1.6;
    }

    footer .list-unstyled li {
        margin-bottom: 0.75rem;
    }

    footer .list-unstyled a {
        color: var(--gray-500);
        text-decoration: none;
        transition: var(--transition);
    }

        footer .list-unstyled a:hover {
            color: var(--primary);
        }

.social-icons {
    margin-top: 1rem;
}

    .social-icons a {
        font-size: 1.25rem;
        margin-right: 1rem;
        color: var(--gray-500);
        transition: var(--transition);
    }

        .social-icons a:hover {
            color: var(--primary);
        }

/* Tables */
.table {
    margin-bottom: 1.5rem;
}

    .table thead th {
        background-color: var(--gray-100);
        border-bottom: 2px solid var(--border-color);
        font-weight: 600;
        color: var(--gray-500);
    }

/* Alerts */
.alert {
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
}

.alert-primary {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

/* Badges */
.badge {
    padding: 0.35em 0.65em;
    font-weight: 500;
    border-radius: 0.375rem;
}

/* Modals */
.modal-content {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
}

/* Pagination */
.pagination .page-link {
    color: var(--dark);
    border-color: var(--border-color);
    padding: 0.5rem 0.75rem;
}

    .pagination .page-link:hover {
        background-color: var(--gray-100);
    }

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

/* Back to Top Button */
#btn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    border: none;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
    z-index: 1000;
}

    #btn-back-to-top:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
    }

    #btn-back-to-top i {
        font-size: 1.25rem;
        line-height: 1;
    }

/* Loading Spinner */
#cover-spin, #profile-tabs-spin {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    display: none;
    z-index: 9999;
}

@-webkit-keyframes spin {
    from {
        -webkit-transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

#cover-spin::after, #profile-tabs-spin::after {
    content: '';
    display: block;
    position: absolute;
    left: 48%;
    top: 40%;
    width: 40px;
    height: 40px;
    border-style: solid;
    border-color: black;
    border-top-color: transparent;
    border-width: 4px;
    border-radius: 50%;
    -webkit-animation: spin .8s linear infinite;
    animation: spin .8s linear infinite;
}

.myspinner {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Utility Classes */
.color-success {
    background-color: #198754 !important;
}

.review-color {
    color: #198754;
}

.review-icon {
    color: #ffc107;
    font-size: 24px;
    padding: 1px;
}

.spec-1 {
    --tw-text-opacity: 1;
    color: rgb(88 88 90/var(--tw-text-opacity));
    font-weight: 400 !important;
    font-size: 20px;
}

.list-mb-init {
    margin-bottom: initial;
}

.dot {
    height: 4px;
    width: 4px;
    margin-left: 6px;
    margin-right: 6px;
    margin-top: 3px;
    display: inline-block;
    vertical-align: middle;
    border-radius: 100%;
    background-color: #333;
}

.section {
    padding: 4rem 0;
}

.section-sm {
    padding: 2rem 0;
}

/* Lists */
.list-icon, .list-dots, .list-check-custom {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

    .list-bullet li, .list-dots li {
        padding-left: 20px;
    }

    .list-icon li, .list-bullet li, .list-dots li, .list-check li, .list-menu li {
        position: relative;
        margin-bottom: 4px;
    }

        .list-bullet li::before, .list-dots li::before {
            content: " ";
            position: absolute;
            top: 8px;
            left: 0;
            width: 7px;
            border-radius: 100%;
            height: 7px;
            background: #ccd1d6;
        }

/* Top Category */
#div-top-category {
    display: inline;
}

#ul-top-category li {
    display: inline;
}

/* Rating Progress */
.rating-progress {
    display: flex;
    justify-content: center;
    align-items: center;
}

    .rating-progress .rating-grade {
        padding: 3px 20px 3px 0;
        float: left;
        width: 50px;
        text-align: right;
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    .rating-progress .progress {
        float: left;
        width: calc(100% - 110px);
        border-radius: 10px;
    }

    .rating-progress .rating-value {
        padding: 3px 0 3px 20px;
        float: left;
        width: 60px;
    }

    .rating-progress:after {
        content: "";
        clear: both;
        display: table;
    }

/* Animations */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Media Queries */
@media (max-width: 991.98px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.125rem;
    }

    h5 {
        font-size: 1rem;
    }

    h6 {
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.125rem;
    }

    h4 {
        font-size: 1rem;
    }

    h5 {
        font-size: 0.875rem;
    }

    h6 {
        font-size: 0.75rem;
    }

    .lead {
        font-size: 1rem;
    }

    .spec-1 {
        font-size: 16px;
    }

    .section {
        padding: 2rem 0;
    }

    .card-header {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 1.375rem;
    }

    h2 {
        font-size: 1.125rem;
    }

    h3 {
        font-size: 1rem;
    }

    .section {
        padding: 1.5rem 0;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    a[href]:after {
        content: none !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid var(--border-color) !important;
    }
}
.navbar-brand img {
    max-height: 40px;
    width: auto;
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .navbar-brand img {
        max-height: 35px;
    }
}