@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

/* ===== Custom Theme Styles ===== */

/* Body and Base Styles */
body {
    background-color: #FFFFFF;
    color: #000000;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: "Poppins", sans-serif;
    color: #454545;
}

h1 {
    font-size: 30px;
}

h2 {
    font-size: 26px;
}

h3 {
    font-size: 22px;
}

h4 {
    font-size: 18px;
}

/* Paragraphs and Text */
p {
    color: #000000;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    line-height: 1.6;
}

/* Links */
a {
    color: #000000;
    font-family: "Poppins", sans-serif;
    transition: color 0.3s ease;
}

a:hover {
    color: #58ACFA;
}

a:visited {
    color: #000000;
}

/* Navigation Bar - User Header */
div[style*="background-color:#58ACFA"] {
    background-color: #58ACFA !important;
}

div[style*="background-color:#58ACFA"] a {
    color: #000000 !important;
}

div[style*="background-color:#58ACFA"] a:hover {
    background-color: #4A9AEA;
    color: #FFFFFF !important;
    padding: 5px 10px;
    border-radius: 3px;
}

/* Dropdown Menus */
.dropdown-content {
    background-color: #FFFFFF !important;
    border: 1px solid #58ACFA;
}

.dropdown-content a {
    color: #000000 !important;
}

.dropdown-content a:hover {
    background-color: #58ACFA !important;
    color: #FFFFFF !important;
}

.dropbtn {
    background-color: #58ACFA !important;
    color: #000000 !important;
    font-family: "Poppins", sans-serif;
}

.dropdown:hover .dropbtn {
    background-color: #4A9AEA !important;
}

/* Buttons */
input[type=button], 
input[type=submit], 
button {
    background-color: #454545;
    color: #FFFFFF;
    border-radius: 6px;
    font-family: "Poppins", sans-serif;
    transition: background-color 0.3s ease;
}

input[type=button]:hover, 
input[type=submit]:hover, 
button:hover {
    background-color: #666666;
}

/* Form Elements */
input[type=text], 
input[type=password], 
input[type=email], 
input[type=number], 
textarea, 
select {
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    color: #000000;
    background-color: #FFFFFF;
    border: 1px solid #58ACFA;
}

input[type=text]:focus, 
input[type=password]:focus, 
input[type=email]:focus, 
input[type=number]:focus, 
textarea:focus, 
select:focus {
    border-color: #000000;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

/* Tables */
th {
    background-color: #58ACFA;
    color: #000000;
    font-family: "Poppins", sans-serif;
}

td {
    color: #000000;
    font-family: "Poppins", sans-serif;
}

/* Tabs */
.theme-tab {
    font-family: "Poppins", sans-serif;
}

.theme-tab.active {
    background-color: #58ACFA !important;
    color: #FFFFFF !important;
}

.theme-tab:hover {
    background-color: #4A9AEA !important;
    color: #FFFFFF !important;
}

/* Alert Messages */
.alert-box.success {
    background-color: #58ACFA;
    color: #FFFFFF;
    border: 1px solid #000000;
}

.alert-box.failure {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

/* Gallery Specific Styles */
.gallery-item {
    border: 1px solid #58ACFA;
}

.gallery-item:hover {
    border-color: #000000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Ensure popup tooltips remain visible and properly styled */
.popup {
    background-color: #fff !important;
    color: #333 !important;
    z-index: 1000 !important;
}

.popup img {
    max-width: 100% !important;
    height: auto !important;
}

.popup p {
    color: #888 !important;
    font-family: "Poppins", sans-serif;
}

/* Canvas 3D Preview - DO NOT OVERRIDE */
/* The canvas preview should be excluded from theme customization */
/* Let the original inline styles and JavaScript handle it completely */

/* Company Logo - Adjust for dark backgrounds */

/* Search Bar */
input[type="text"]#q {
    background-color: #FFFFFF !important;
    color: #000000 !important;
    border: 1px solid #58ACFA !important;
}

input[type="text"]#q:focus {
    border-color: #000000 !important;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #FFFFFF;
}

::-webkit-scrollbar-thumb {
    background: #58ACFA;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #000000;
}

/* Selection color */
::selection {
    background-color: #58ACFA;
    color: #FFFFFF;
}

::-moz-selection {
    background-color: #58ACFA;
    color: #FFFFFF;
}

/* Tag Menu Navigation Styles (Desktop) */
.tag-menu {
    background: #58ACFA !important;
}

.tag-menu a {
    color: #000000 !important;
    background: rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;    font-family: "Poppins", sans-serif;
}

.tag-menu a:hover {
    background: #4A9AEA !important;
    color: #FFFFFF !important;
    border-color: rgba(0, 0, 0, 0.2) !important;}

/* Scroll buttons for tag menu */
.scroll-btn {
    background: #FFFFFF !important;
    color: #000000 !important;
}

.scroll-btn:hover {
    background: #58ACFA !important;
    color: #FFFFFF !important;
}

/* Mobile Navigation Menu Styles */
.header {
    background-color: #58ACFA !important;
}

.nav {
    background-color: #58ACFA !important;
}

.menu a {
    color: #000000 !important;
    font-family: "Poppins", sans-serif;
}

.menu a:hover {
    background-color: #4A9AEA !important;
    color: #FFFFFF !important;
}

.logo, .logo a {
    color: #000000 !important;
    font-family: "Poppins", sans-serif;
}

/* Hamburger menu lines */
.hamb-line,
.hamb-line::before,
.hamb-line::after {
    background: #000000 !important;
}

/* Close button */
.close-btn {
    color: #000000 !important;
}

.close-btn:hover {
    background-color: #4A9AEA !important;
    color: #FFFFFF !important;
}

/* Main navigation links (desktop) - gallery_links.php */
div[style*="display: flex; justify-content: flex-end"] a {
    color: #000000 !important;
    font-family: "Poppins", sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
}

div[style*="display: flex; justify-content: flex-end"] a:hover {
    color: #FFFFFF !important;
    background-color: #4A9AEA !important;
    padding: 7px !important;
    border-radius: 4px;
}

/* Ensure emojis remain visible */
div[style*="display: flex; justify-content: flex-end"] a span {
    opacity: 1 !important;
}

/* Social media icons area background */
div[style*="float: left"] {
    background-color: transparent;
}

/* Search input styling */
input[type="text"]#q,
input[type="search"]#q {
    background-color: #FFFFFF !important;
    color: #000000 !important;
    border: 1px solid #58ACFA !important;
    font-family: "Poppins", sans-serif;
}

input[type="text"]#q::placeholder,
input[type="search"]#q::placeholder {
    color: #000000;
    opacity: 0.6;
}

input[type="text"]#q:focus,
input[type="search"]#q:focus {
    border-color: #000000 !important;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

/* Image Details Section - Always white background for readability */
#whiteSpace {
    background-color: #ffffff !important;
}

/* Cart and pricing section */
#cart {
    background-color: #ffffff !important;
}

#displayPrice {
    background-color: #f8f9fa !important;
    color: #000000 !important;
}

/* Wall Preview Button - Follow theme colors */
.view-on-wall-btn {
    background-color: #454545 !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 6px !important;
    font-family: "Poppins", sans-serif !important;
    transition: background-color 0.3s ease !important;
}

.view-on-wall-btn:hover {
    background-color: #666666 !important;
}

/* Titles and Headings in white content area - Follow theme colors */
#whiteSpace h3,
#whiteSpace h4,
#cart h3,
#cart h4 {
    color: #454545 !important;
    font-family: "Poppins", sans-serif !important;
}

/* Paragraph text in white content area - Follow theme colors */
#whiteSpace p,
#cart p {
    color: #000000 !important;
    font-family: "Poppins", sans-serif !important;
}

/* Links in white content area - Follow theme colors */
#whiteSpace .link,
#cart .link {
    color: #000000 !important;
    font-family: "Poppins", sans-serif !important;
}

#whiteSpace .link:hover,
#cart .link:hover {
    color: #58ACFA !important;
}

/* Buttons in white content area - Follow theme colors */
#cart input[type=button],
#cart input[type=submit],
#cart button,
.make-offer-btn {
    background-color: #454545 !important;
    color: #FFFFFF !important;
    border-radius: 6px !important;
    font-family: "Poppins", sans-serif !important;
    transition: background-color 0.3s ease !important;
}

#cart input[type=button]:hover,
#cart input[type=submit]:hover,
#cart button:hover,
.make-offer-btn:hover {
    background-color: #666666 !important;
}

/* Media Selection Buttons (radio-toolbar) - Follow theme colors */
.radio-toolbar label {
    background-color: #454545 !important;
    color: #FFFFFF !important;
    border: 2px solid #58ACFA !important;
    border-radius: 6px !important;
    font-family: "Poppins", sans-serif !important;
}

.radio-toolbar input[type="radio"]:checked + label {
    background-color: #58ACFA !important;
    border-color: #58ACFA !important;
}

.radio-toolbar input[type="radio"]:checked + label,
.radio-toolbar input[type="radio"]:focus + label {
    border: 3px solid #000000 !important;
    box-shadow: 0 0 8px #000000 !important;
    outline: none !important;
}

.radio-toolbar label:hover {
    background-color: #666666 !important;
}

/* Size Selection Buttons - Follow theme colors */
button.size {
    background-color: #454545 !important;
    color: #FFFFFF !important;
    border: 1px solid #58ACFA !important;
    border-radius: 6px !important;
    font-family: "Poppins", sans-serif !important;
}

button.size:focus {
    border: 1px solid #000000 !important;
    color: #454545 !important;
}

/* Selected size button - override text color to maintain visibility */
button.size.selected {
    color: #ccc !important;
}

/* Tab Buttons - Follow theme colors */
button.tabs {
    background-color: #454545 !important;
    color: #FFFFFF !important;
    border: 1px solid #58ACFA !important;
    border-radius: 6px !important;
    font-family: "Poppins", sans-serif !important;
}

/* Make Offer Button - Follow theme colors */
.make-offer-btn {
    background-color: #454545 !important;
    color: #FFFFFF !important;
    border-radius: 6px !important;
    font-family: "Poppins", sans-serif !important;
    transition: background-color 0.3s ease !important;
}

.make-offer-btn:hover {
    background-color: #666666 !important;
}

/* Social Media Buttons - Keep their brand colors but follow theme fonts */
.social-button {
    font-family: "Poppins", sans-serif !important;
    border-radius: 6px !important;
}

/* Custom CSS from user */
