/* General Styles */
body {
    background-color: #151e27 !important;
    color: white !important;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.272);
    /* Adjust opacity and color */
    z-index: -1;
}

/* Navbar Styles */
.navbar {
    background: rgba(15, 25, 35, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-logo {
    height: 80px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.05);
}

.brand-text {
    font-size: 0.78rem;
    font-weight: 600;
    background: linear-gradient(45deg, #ff4655, #ff8f9c);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar-nav {
    gap: 0.5rem;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #ff4655 !important;
    transform: translateY(-1px);
}

.nav-link.active {
    background: linear-gradient(45deg, #ff4655, #ff8f9c);
    color: white !important;
}

.nav-link i {
    transition: transform 0.3s ease;
}

.nav-link:hover i {
    transform: translateX(2px);
}

.nav-social-links {
    display: flex;
    gap: 1rem;
    margin-left: 1rem;
}

.nav-social-link {
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.nav-social-link:hover {
    color: #ff4655;
    transform: translateY(-2px);
}

.navbar-toggler {
    padding: 0.5rem;
    border-width: 2px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 70, 85, 0.25);
}

#clear-button {
    display: none;
}

@media (max-width: 991.98px) {
    .navbar-nav {
        margin: 1rem 0;
        padding: 1rem;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 8px;
    }

    .nav-social-links {
        justify-content: center;
        margin: 1rem 0;
    }
}

/* Admin Navbar Styles */
.admin-actions {
    display: flex;
    gap: 1rem;
}

.admin-actions .nav-link {
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.admin-actions .nav-link:hover {
    border-color: currentColor;
    background: rgba(255, 255, 255, 0.1);
}

.admin-actions .text-danger:hover {
    background: rgba(255, 70, 85, 0.1);
}

/* Override some navbar styles for admin */
.navbar .nav-link i {
    opacity: 0.8;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover i {
    opacity: 1;
    transform: translateX(2px);
}

.navbar .nav-link.active {
    background: linear-gradient(45deg, #ff4655, #ff8f9c);
    color: white !important;
    box-shadow: 0 4px 15px rgba(255, 70, 85, 0.3);
}

.navbar .nav-link.active i {
    opacity: 1;
}

/* Admin specific brand text */
.navbar .brand-text {
    font-size: 0.78rem;
}

.input-danger-search-sort:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
    outline: none;
}

#crosshairs-grid.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#crosshairs-grid.fade-in {
    opacity: 1;
    transition: opacity 0.3s ease;
}

@media (max-width: 991.98px) {
    .admin-actions {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

.crosshairs-grid-single {
    transition: transform 0.3s ease;
}

.crosshairs-grid-single:hover {
    transform: translateY(-7px);
    /* border-color: #ff4655 !important;
    box-shadow: 0px 0px 14px 13px rgba(255, 70, 85, 0.3); */
}

/* Crosshair Card Styles */
.crosshair-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    background-color: #3b4a59 !important;
    box-shadow: 0px -1px 18px 0px #0e0e0e6e;
}

.crosshair-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 5%;
}

.card-overlay {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to top, rgb(255 9 9 / 50%), #f73b3b9e);
    padding: 10px;
    /* transform: translateY(100%); */
    transition: transform 0.3s ease;
    box-shadow: 0px 5px 8px 0px #0e0e0e6e;
}

.crosshair-card:hover .card-overlay {
    transform: translateY(0);
}

.card-overlay h4 {
    text-align: center;
    font-size: 0.95rem;
    margin: 0;
    color: white;
}

.copy-count {
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    width: fit-content;
}

/* Trending Section Styles */
.trending-section {
    background: linear-gradient(to bottom, #1f29337d, #0f192363);
    padding: 50px 0;
}

.trending-swiper {
    padding: 20px 40px;
}

.swiper-button-next,
.swiper-button-prev {
    color: #ff4655 !important;
}

.swiper-pagination-bullet {
    background: #ff4655 !important;
}

/* Modal Styles */
.modal.fade .modal-dialog {
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal.show .modal-dialog {
    transform: scale(1);
}

.modal-content {
    background-color: #1f2933 !important;
    border: 1px solid #374151;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-header {
    border-bottom-color: #374151 !important;
}

.code-container {
    background: #0f1923 !important;
    border-radius: 8px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

#background-preview {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.background-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.crosshair-overlay {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    z-index: 2;
    filter: brightness(1.2);
    transition: all 0.3s ease;
}


.crosshair-overlay:hover {
    filter: brightness(1.5);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Copy Button Animation */
@keyframes copySuccess {
    0% {
        background: #28a745;
    }

    90% {
        background: #28a745;
    }

    100% {
        background: #007bff;
    }
}

.copy-success {
    animation: copySuccess 2s ease forwards;
}

/* Modal Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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

.modal-content>* {
    animation: slideUp 0.5s ease forwards;
}

#crosshair-title {
    animation: fadeIn 0.5s ease 0.2s both;
}

#crosshair-description {
    animation: fadeIn 0.5s ease 0.3s both;
}

.code-container {
    animation: fadeIn 0.5s ease 0.4s both;
}

/* Swiper Navigation Enhancement */
.swiper-button-next,
.swiper-button-prev {
    background-color: rgba(255, 70, 85, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-button-prev {
    transform: rotateY(180deg);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: rgba(255, 70, 85, 0.4);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    display: none;
}

.swiper-button-next.swiper-button-disabled,
.swiper-button-prev.swiper-button-disabled {
    opacity: .15;
    cursor: auto;
    pointer-events: none;
}

#crosshair-admin-table-head th {
    vertical-align: middle;
    padding: 1rem 1rem 2rem 1rem;
}

#crosshair-admin-table-body td {
    vertical-align: middle;
}

.custom-modal-loader {
    display: none;
    position: fixed;
    z-index: 1055;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loader-pulse {
    width: 80px;
    height: 80px;
    animation: loader-pulse 1.1s cubic-bezier(.4, 0, .2, 1) infinite;
}

@keyframes loader-pulse {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.12);
        filter: brightness(1.3);
    }

    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

.modal-loader-text {
    color: #fff;
    margin-top: 18px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #ff4655, #fff, #ff4655);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-move 2s linear infinite;
}

@keyframes gradient-move {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.loader-pulse-spin {
    width: 80px;
    height: 80px;
    animation:
        loader-pulse 1.1s cubic-bezier(.4, 0, .2, 1) infinite,
        loader-spin 1.5s linear infinite;
}

@keyframes loader-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes loader-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* About Page Styles */
.about-card {
    background: rgba(15, 25, 35, 0.95);
    border: 1px solid rgba(255, 70, 85, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: #ff4655;
    box-shadow: 0 5px 15px rgba(255, 70, 85, 0.2);
}

.about-icon {
    font-size: 2.5rem;
    color: #ff4655;
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    color: white;
}

.feature-list li i {
    color: #ff4655;
    font-size: 1.2rem;
}

.about-section .btn-outline-danger {
    border-width: 2px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.about-section .btn-outline-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 70, 85, 0.3);
}

/* Terms and Privacy Pages Styles */
.terms-section h3,
.privacy-section h3 {
    color: #ff4655;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.terms-section p,
.privacy-section p,
.about-section p {
    color: white;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.about-section .feature-list span {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.privacy-section ul {
    list-style: none;
    padding-left: 1.5rem;
}

.privacy-section ul li {
    position: relative;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.privacy-section ul li:before {
    content: "•";
    color: #ff4655;
    position: absolute;
    left: -1.5rem;
}

/* Footer Styles */
.footer {
    background: rgba(15, 25, 35, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 70, 85, 0.2);
}

.footer-logo {
    height: 60px;
    width: auto;
}

.footer-text {
    color: white;
    opacity: 0.8;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-title {
    color: #ff4655;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: #ff4655;
    opacity: 1;
    transform: translateX(5px);
}

.footer-contact li {
    color: white;
    opacity: 0.8;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.footer-contact li i {
    color: #ff4655;
}

.footer-contact li a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-contact li a:hover {
    color: #ff4655;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.social-link:hover {
    color: #ff4655;
    opacity: 1;
    transform: translateY(-3px);
}

.footer-bottom {
    color: white;
    opacity: 0.7;
    font-size: 0.9rem;
}

@media (max-width: 991.98px) {
    .footer [class^="col-"] {
        margin-bottom: 2rem;
    }
}

/* Back to Home Button */
#nav_home_btn {
    display: inline-flex;
    align-items: center;
    position: fixed;
    top: 2rem;
    left: 2rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 70, 85, 0.1);
    color: #ff4655;
    text-decoration: none;
    border: 2px solid #ff4655;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 1000;
}

#nav_home_btn i {
    transition: transform 0.3s ease;
}

#nav_home_btn:hover {
    background: #ff4655;
    color: white;
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(255, 70, 85, 0.3);
}

#nav_home_btn:hover i {
    transform: translateX(-3px);
}

@media (max-width: 768px) {
    #nav_home_btn {
        top: 1rem;
        left: 1rem;
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) and (min-width:500px) {

    .crosshair-overlay {
        top: 42%;
    }

}

@media (max-width: 500px) {

    .crosshair-overlay {
        top: 50%;
    }

    .background-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem;
        padding: 1rem;
    }
}

/* Background Grid Styles */
.background-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 1rem;
}

.background-preview-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: grab;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.background-preview-item:hover {
    transform: scale(1.02);
    border-color: #ff4655;
}

.background-preview-item.active {
    border-color: #ff4655;
}

.background-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.background-preview-item .crosshair-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #00ffff;
    font-size: 24px;
}

/* Modal adjustments */
.modal-xl .modal-body {
    padding: 1.5rem;
}

@media (min-width: 1200px) {
    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.5rem !important;

    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    .nav-link {
        font-size: 0.715rem;
        padding: 0.5rem 0.5rem !important;

    }
}