/* === बनाना थीम CSS V2 - PassportPhotoMaker.in === */

/* रूट वेरिएबल्स: हमारी थीम के रंग और स्टाइल */
:root {
    --primary: #FBCB0A; /* केला पीला */
    --secondary: #6D4C41; /* गहरा भूरा (केले के डंठल जैसा) */
    --light-bg: #ffffff; /* मुख्य कंटेंट के लिए सफ़ेद */
    --body-bg: #FFFDD0; /* पूरी बॉडी के लिए हल्का क्रीम बैकग्राउंड */
    --dark-bg: #2c251e; /* डार्क मोड के लिए गहरा भूरा */
    --text-light: #F5F5DC; /* डार्क मोड के लिए हल्का टेक्स्ट */
    --text-dark: #3d2b1f; /* सामान्य टेक्स्ट के लिए गहरा भूरा */
    --border-light: #e0d9b4;
    --border-dark: #5a4235;
    --footer-bg: #1c160f;
    --footer-text: #c5bba8;
    --button-primary-bg: var(--primary);
    --button-primary-hover: #e2b600;
    --button-secondary-bg: var(--secondary);
    --button-secondary-hover: #5a3e35;
    --soft-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    --soft-shadow-dark: 0 8px 20px rgba(0, 0, 0, 0.2);
    --border-radius: 12px; /* गोल किनारे */

    /* माप */
    --page-width: 220mm;
    --page-height: 332mm;
    --photo-width: 35mm;
    --photo-height: 47mm;
    --gap-size: 2mm;
    --padding-size: 10mm;
}


/* बेसिक रीसेट और नया फ़ॉन्ट */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', 'Noto Sans Devanagari', sans-serif;
}


/* बॉडी स्टाइलिंग और थीम ट्रांजीशन */
body {
    background-color: var(--body-bg);
    color: var(--text-dark);
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    overflow-x: hidden;
}


body.dark-mode {
    background-color: var(--dark-bg);
    color: var(--text-light);
}


/* Main container */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: calc(100vh - 180px);
}

.content-wrapper {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* Header styling */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-light);
    background-color: var(--light-bg);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease, border-bottom-color 0.3s ease;
}

body.dark-mode header {
    background-color: #3d2b1f; /* डार्क मोड में गहरा भूरा हेडर */
    border-bottom-color: var(--border-dark);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    z-index: 102;
}
body.dark-mode .logo {
    color: var(--text-light);
}

.mobile-menu-button {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    z-index: 102;
    margin-left: 15px;
}
body.dark-mode .mobile-menu-button {
    color: var(--text-light);
}

nav#mainNav {
    display: flex;
    transition: transform 0.3s ease-in-out;
}
nav#mainNav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav#mainNav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s ease;
}
nav#mainNav ul li a:hover {
    color: var(--primary);
}
body.dark-mode nav#mainNav ul li a {
    color: var(--text-light);
}
body.dark-mode nav#mainNav ul li a:hover {
    color: var(--primary);
}
nav#mainNav ul li.active a {
    color: var(--primary);
    font-weight: 700;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 102;
}

.language-select {
    padding: 6px 10px;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    background-color: var(--body-bg);
    color: var(--text-dark);
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
body.dark-mode .language-select {
    background-color: var(--dark-bg);
    border-color: var(--border-dark);
    color: var(--text-light);
}

.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-dark);
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.dark-mode .theme-toggle {
    color: var(--text-light);
}
.theme-toggle:hover {
    transform: scale(1.1);
}

/* Main Title Styling */
.main-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    margin: 40px 0 30px 0;
    color: var(--text-dark);
 }
body.dark-mode .main-title {
     color: var(--text-light);
 }
.main-title span {
     color: var(--secondary);
 }


/* Step container - general styling */
.step-container {
    background: var(--light-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--soft-shadow);
    margin-top: 30px;
    margin-bottom: 30px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-light);
}


body.dark-mode .step-container {
    background: #3d2b1f;
    box-shadow: var(--soft-shadow-dark);
    border-color: var(--border-dark);
}


/* Upload area styling */
.upload-container {
    flex: 1;
    padding: 40px;
    text-align: center;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s;
    background-color: #faf8e9;
    border: 2px dashed var(--border-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    position: relative;
}

#fileInput {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

#selectImageBtn {
    cursor: pointer;
    display: inline-block;
}

body.dark-mode .upload-container {
    border-color: var(--border-dark);
    background-color: #2c251e;
}


.upload-container:hover {
    border-color: var(--primary);
    background: #fffbe0;
}
body.dark-mode .upload-container:hover {
    background: rgba(251, 203, 10, 0.05);
 }


 .upload-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 15px;
 }


.upload-text {
    margin-bottom: 15px;
    font-size: 16px;
     font-weight: 600;
 }


.upload-separator {
    display: block;
    margin: 15px 0;
    font-size: 14px;
    color: #888;
}
 body.dark-mode .upload-separator {
    color: #aaa;
 }

/* General button styling */
.btn {
    padding: 12px 25px;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    margin: 5px;
    font-weight: 700;
    text-decoration: none;
}


.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


.btn-primary {
    background: var(--button-primary-bg);
    color: var(--text-dark);
    box-shadow: 0 4px 10px rgba(251, 203, 10, 0.4);
}
.btn-primary:hover:not(:disabled) {
    background: var(--button-primary-hover);
    transform: translateY(-2px);
 }


.btn-secondary {
    background: var(--button-secondary-bg);
    color: white;
    box-shadow: 0 4px 10px rgba(109, 76, 65, 0.3);
}
.btn-secondary:hover:not(:disabled) {
    background: var(--button-secondary-hover);
    transform: translateY(-2px);
 }

/* --- Styles for other steps --- */
#uploadStep .step-header { display: none; }

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px 30px 0 30px;
}

.step-title {
    font-size: 22px;
    font-weight: 700;
}

.step-number {
    background: var(--secondary);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
}

/* Other styles will be inherited and adapted via variables. Only overriding where necessary. */

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 40px 20px 20px 20px;
    margin-top: 50px;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 30px auto;
 }
.footer-column h4 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
 }
.footer-column p,
.footer-column ul {
    font-size: 15px;
    line-height: 1.6;
}
.footer-column ul {
    list-style: none;
    padding: 0;
}
.footer-column ul li {
    margin-bottom: 8px;
 }
.footer-column ul li a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-column ul li a:hover {
    color: var(--primary);
 }
.footer-copyright {
    text-align: center;
    font-size: 14px;
    border-top: 1px solid #333;
    padding-top: 20px;
    max-width: 1200px;
    margin: 0 auto;
 }

/* Hiding and error messages */
.hidden { display: none !important; }
.error { color: #dc3545; margin-top: 10px; text-align: center; font-weight: bold; }
#bgCanvas { display: none; }

/* User Dropdown Styling */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background-color: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-dark);
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.dark-mode .dropdown-toggle {
    color: var(--text-light);
    border-color: var(--border-dark);
}

.dropdown-toggle:hover {
    background-color: #f0f0f0;
}

body.dark-mode .dropdown-toggle:hover {
    background-color: #333;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 5px;
    background-color: var(--light-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    box-shadow: var(--soft-shadow);
    min-width: 200px;
    z-index: 110;
    overflow: hidden;
}

body.dark-mode .dropdown-menu {
    background-color: var(--dark-bg);
    border-color: var(--border-dark);
    box-shadow: var(--soft-shadow-dark);
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu ul li a:hover {
    background-color: #f5f5f5;
    color: var(--secondary);
}

/* Custom Credits Button in Dropdown */
.dropdown-menu li.credits-item a.credits-display {
    background-color: var(--primary); /* Use theme color */
    color: var(--text-dark) !important;
    border-radius: 30px;
}

.dropdown-menu li.credits-item a.credits-display:hover {
    background-color: var(--button-primary-hover);
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: var(--text-dark) !important;
}

body.dark-mode .dropdown-menu ul li a:hover {
    background-color: #333;
}


/* --- Point History & Forms --- */
.history-container, .content-box {
    background: var(--light-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
    box-shadow: var(--soft-shadow);
}

body.dark-mode .history-container, body.dark-mode .content-box {
    background: #3d2b1f;
    border-color: var(--border-dark);
}

.history-table th {
    background-color: #faf8e9;
}
body.dark-mode .history-table th {
    background-color: #2c251e;
}
.history-table tbody tr:hover {
    background-color: #fefdf5;
}
body.dark-mode .history-table tbody tr:hover {
    background-color: #4a3c32;
}

/* Form inputs */
.form-input {
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
    background-color: var(--light-bg);
    color: var(--text-dark);
}
body.dark-mode .form-input {
    background-color: #2c251e;
    border-color: var(--border-dark);
    color: var(--text-light);
}
.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(251, 203, 10, 0.2);
}

/* Notification Messages */
.notification {
    border-radius: var(--border-radius);
    box-shadow: var(--soft-shadow);
}

/* --- Loader and Custom Alert Styles --- */
.custom-alert-box {
    border-radius: var(--border-radius);
    border-top: 5px solid var(--primary);
}
.custom-alert-box.alert-error {
    border-top-color: #dc3545;
}

/* --- Informational Sections --- */
.how-it-works-card, .feature-card, .content-box-style, .faq-item {
    background: var(--light-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
}
body.dark-mode .how-it-works-card, body.dark-mode .feature-card, body.dark-mode .content-box-style, body.dark-mode .faq-item {
    background: #3d2b1f;
    border-color: var(--border-dark);
}
.feature-card {
    border-left: 5px solid var(--primary);
}
.subsection-title {
    border-bottom: 2px solid var(--primary);
}
.faq-item summary:after, .tip-icon {
    color: var(--primary);
}
.faq-item[open] > summary {
    color: var(--primary);
}

/* --- Pricing Page --- */
.pricing-section {
    background-color: #faf8e9;
    border-radius: var(--border-radius);
}
body.dark-mode .pricing-section {
    background-color: #2c251e;
}

.pricing-card {
    background: var(--light-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    box-shadow: var(--soft-shadow);
}
body.dark-mode .pricing-card {
    background: #1e1e1e;
    border-color: var(--border-dark);
    box-shadow: var(--soft-shadow-dark);
}

.pricing-card.featured {
    border: 2px solid var(--secondary);
}

.pricing-card .credits-tag {
    background-color: rgba(251, 203, 10, 0.2);
    color: var(--secondary);
}
body.dark-mode .pricing-card .credits-tag {
    background-color: var(--secondary);
    color: var(--text-light);
}

.pricing-card .btn-full {
    border-radius: var(--border-radius);
    background-color: var(--secondary);
    border: 2px solid var(--secondary);
    color: white;
}
.pricing-card .btn-full:hover {
    background-color: var(--button-secondary-hover);
}

.pricing-card.featured .btn-full {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--text-dark);
}
.pricing-card.featured .btn-full:hover {
    background-color: var(--button-primary-hover);
}

/* --- AI Editor & Other Tools --- */
.ai-editor-mode-switcher button.active {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
}
.prompt-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(251, 203, 10, 0.2);
}
.loading-indicator .spinner {
    border-left-color: var(--primary);
}
.tooltip-icon {
    background-color: var(--primary);
}
.pagination-container .active {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: white;
}
.receipt-header h1 {
    color: var(--secondary);
}
.history-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--soft-shadow);
}
.btn-download-history {
    background-color: var(--primary);
}
.btn-download-history:hover {
    background-color: var(--secondary);
}

/* Inherit all responsive and structural CSS from the original file */
/* The provided CSS file is already included below this line. */
/* Only color and theme related changes are made above. */

/* Basic reset and font */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Nunito', 'Noto Sans Devanagari', sans-serif; }
/* Body styling and theme transition */
body { background-color: var(--body-bg); color: var(--text-dark); transition: background-color 0.3s ease, color 0.3s ease; position: relative; overflow-x: hidden; }
body.dark-mode { background-color: var(--dark-bg); color: var(--text-light); }
/* Main container */
.main-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; min-height: calc(100vh - 180px); }
/* --- START: Layout Fix for Content Area --- */
.content-wrapper { max-width: 1200px !important; margin: 0 auto !important; padding-left: 20px !important; padding-right: 20px !important; }
/* --- END: Layout Fix for Content Area --- */
/* Header styling */
header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--border-light); background-color: var(--light-bg); position: sticky; top: 0; z-index: 100; transition: background-color 0.3s ease, border-bottom-color 0.3s ease; }
body.dark-mode header { background-color: #3d2b1f; border-bottom-color: var(--border-dark); }
.logo { font-size: 24px; font-weight: 700; color: var(--text-dark); z-index: 102; }
body.dark-mode .logo { color: var(--text-light); }
/* Mobile Menu Button */
.mobile-menu-button { display: none; font-size: 28px; background: none; border: none; cursor: pointer; color: var(--text-dark); z-index: 102; margin-left: 15px; }
body.dark-mode .mobile-menu-button { color: var(--text-light); }
/* Navigation Links */
nav#mainNav { display: flex; transition: transform 0.3s ease-in-out; }
nav#mainNav ul { list-style: none; display: flex; gap: 25px; }
nav#mainNav ul li a { text-decoration: none; color: var(--text-dark); font-weight: 600; transition: color 0.3s ease; }
nav#mainNav ul li a:hover { color: var(--primary); }
body.dark-mode nav#mainNav ul li a { color: var(--text-light); }
body.dark-mode nav#mainNav ul li a:hover { color: var(--primary); }
/* Active link style */
nav#mainNav ul li.active a { color: var(--primary); font-weight: 700; }
/* Header Right Side Elements */
.header-right { display: flex; align-items: center; gap: 15px; z-index: 102; }
/* Language Dropdown */
.language-select { padding: 6px 10px; border: 1px solid var(--border-light); border-radius: var(--border-radius); background-color: var(--body-bg); color: var(--text-dark); cursor: pointer; transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease; }
body.dark-mode .language-select { background-color: var(--dark-bg); border-color: var(--border-dark); color: var(--text-light); }
/* Theme Toggle Button */
.theme-toggle { background: transparent; border: none; cursor: pointer; font-size: 18px; color: var(--text-dark); padding: 5px; display: flex; align-items: center; justify-content: center; }
body.dark-mode .theme-toggle { color: var(--text-light); }
.theme-toggle:hover { transform: scale(1.1); }
/* Header Buttons */
.header-btn { padding: 8px 18px; border: none; border-radius: var(--border-radius); cursor: pointer; font-size: 14px; font-weight: 500; transition: background-color 0.3s ease; text-decoration: none; display: inline-block; text-align: center; }
.btn-login { background-color: var(--light-bg); color: var(--text-dark); border: 1px solid var(--border-light); }
.btn-login:hover { background-color: #f0f0f0; }
body.dark-mode .btn-login { background-color: var(--dark-bg); color: var(--text-light); border: 1px solid var(--border-dark); }
body.dark-mode .btn-login:hover { background-color: #333; }
.btn-signup { background-color: var(--button-primary-bg); color: white; }
.btn-signup:hover { background-color: var(--button-primary-hover); }
/* Main Title Styling */
.main-title { text-align: center; font-size: 2.8rem; font-weight: 700; margin: 40px 0 30px 0; color: var(--text-dark); }
body.dark-mode .main-title { color: var(--text-light); }
.main-title span { color: var(--secondary); }
/* Step container - general styling */
.step-container { background: var(--light-bg); border-radius: var(--border-radius); box-shadow: var(--soft-shadow); margin-top: 30px; margin-bottom: 30px; transition: background-color 0.3s ease, box-shadow 0.3s ease; border: 1px solid var(--border-light); }
body.dark-mode .step-container { background: #3d2b1f; box-shadow: var(--soft-shadow-dark); border-color: var(--border-dark); }
/* Step 1 Specific Layout */
#uploadStep .step-content-wrapper { display: flex; gap: 30px; padding: 30px; border: 1px dashed var(--border-light); border-radius: 8px; margin-bottom: 30px; }
body.dark-mode #uploadStep .step-content-wrapper { border-color: var(--border-dark); }
/* Upload area styling */
.upload-container { flex: 1; padding: 40px; text-align: center; border-radius: var(--border-radius); cursor: pointer; transition: all 0.3s; background-color: #faf8e9; border: 2px dashed var(--border-light); display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 300px; position: relative; }
/* === अपलोड बटन को ठीक करने के लिए आवश्यक कोड === */
#fileInput { width: 0.1px; height: 0.1px; opacity: 0; overflow: hidden; position: absolute; z-index: -1; }
#selectImageBtn { cursor: pointer; display: inline-block; }
/* === कोड समाप्त === */
body.dark-mode .upload-container { border-color: var(--border-dark); background-color: #2c251e; }
.upload-container:hover { border-color: var(--primary); background: #fffbe0; }
body.dark-mode .upload-container:hover { background: rgba(251, 203, 10, 0.05); }
.upload-icon { font-size: 40px; color: var(--primary); margin-bottom: 15px; }
.upload-text { margin-bottom: 15px; font-size: 16px; font-weight: 600; }
.upload-separator { display: block; margin: 15px 0; font-size: 14px; color: #888; }
body.dark-mode .upload-separator { color: #aaa; }
/* Preview area styling */
.image-preview-container { flex: 1; border: 1px solid var(--border-light); border-radius: var(--border-radius); padding: 10px; background-color: #f0f0f0; display: flex; justify-content: center; align-items: center; min-height: 350px; overflow: hidden; }
body.dark-mode .image-preview-container { border-color: var(--border-dark); background-color: #3a3a3a; }
#uploadImagePreview { display: block; max-width: 100%; max-height: 100%; opacity: 0; transition: opacity 0.3s ease; }
#uploadImagePreview.loaded { opacity: 1; }
.cropper-container { }
/* Size and DPI options */
.size-options-wrapper { display: flex; justify-content: center; padding: 0 30px 30px 30px; }
.size-options { display: flex; gap: 25px; align-items: center; flex-wrap: wrap; justify-content: center; }
.select-box { padding: 10px 15px; border-radius: var(--border-radius); border: 1px solid #ccc; background: var(--light-bg); min-width: 200px; color: var(--text-dark); transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease; }
body.dark-mode .select-box { background: #333; border-color: var(--border-dark); color: var(--text-light); }
.size-options label { font-weight: 500; color: #555; }
body.dark-mode .size-options label { color: #bbb; }
/* General button styling */
.btn { padding: 12px 25px; border-radius: var(--border-radius); border: none; cursor: pointer; font-size: 16px; transition: all 0.3s; margin: 5px; font-weight: 700; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: var(--button-primary-bg); color: var(--text-dark); box-shadow: 0 4px 10px rgba(251, 203, 10, 0.4); }
.btn-primary:hover:not(:disabled) { background: var(--button-primary-hover); transform: translateY(-2px); }
.btn-secondary { background: var(--button-secondary-bg); color: white; box-shadow: 0 4px 10px rgba(109, 76, 65, 0.3); }
.btn-secondary:hover:not(:disabled) { background: var(--button-secondary-hover); transform: translateY(-2px); }
/* --- Styles for other steps --- */
#uploadStep .step-header { display: none; }
.step-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 20px 30px 0 30px; }
.step-title { font-size: 22px; font-weight: 700; }
.step-number { background: var(--secondary); color: white; width: 30px; height: 30px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 14px; font-weight: bold; }
.image-editor-container { margin-top: 0; padding: 0 30px 30px 30px; }
.editor-wrapper { display: flex; gap: 30px; flex-direction: row; flex-wrap: wrap; }
.image-preview-container-steps { flex: 1; min-width: 280px; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; border: 1px solid var(--border-light); border-radius: var(--border-radius); padding: 10px; background-color: var(--light-bg); transition: background-color 0.3s ease, border-color 0.3s ease; }
body.dark-mode .image-preview-container-steps { border-color: var(--border-dark); background-color: #2d2d2d; }
#editStep .image-preview-container-steps { order: 2; }
#clothesStep .image-preview-container-steps { order: 2; }
#borderStep .image-preview-container-steps { order: 2; }
.editor-tools { flex: 1; min-width: 280px; display: flex; flex-direction: column; }
#editStep .editor-tools { order: 1; }
#clothesStep .editor-tools { order: 1; }
#borderStep .editor-tools { order: 1; }
#imagePreview, #processedImage, #noBgImg, #clothesCanvas, #borderPreviewImage { max-width: 100%; max-height: 400px; display: block; object-fit: contain; border-radius: 4px; transition: filter 0.3s ease; margin-bottom: 10px; }
body.dark-mode #noBgImg, body.dark-mode #borderPreviewImage { border-color: var(--border-dark); }
#noBgImg, #borderPreviewImage { border: 1px solid var(--border-light); }
.tool-group { margin-bottom: 15px; border: 1px solid var(--border-light); border-radius: var(--border-radius); background-color: var(--light-bg); transition: border-color 0.3s ease, background-color 0.3s ease; }
body.dark-mode .tool-group { border-color: var(--border-dark); background-color: #2d2d2d; }
.tool-group-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; cursor: pointer; background-color: #f9f9f9; border-bottom: 1px solid var(--border-light); transition: background-color 0.3s ease, border-bottom-color 0.3s ease; border-radius: 4px 4px 0 0; }
body.dark-mode .tool-group-header { background-color: #3a3a3a; border-bottom-color: var(--border-dark); }
.tool-group-header:hover { background-color: #f0f0f0; }
body.dark-mode .tool-group-header:hover { background-color: #4a4a4a; }
.tool-group-header.active { border-bottom: none; }
body.dark-mode .tool-group-header.active { border-bottom: none; }
.tool-title { font-weight: 500; font-size: 1.1em; color: inherit; }
.tool-group-toggle-icon { transition: transform 0.3s ease; width: 18px; height: 18px; fill: currentColor; }
.tool-group-header.active .tool-group-toggle-icon { transform: rotate(180deg); }
.tool-group-content { padding: 0 15px; max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out, padding 0.4s ease-out; }
.tool-group-content.active { max-height: 1000px; min-height: 180px; padding: 15px; transition: max-height 0.5s ease-in, padding 0.5s ease-in; overflow: visible; }
.slider-container { margin-bottom: 15px; }
.slider-label { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.95em; }
.slider { width: 100%; height: 8px; -webkit-appearance: none; appearance: none; background: #ddd; border-radius: 5px; outline: none; cursor: pointer; transition: background-color 0.3s ease; }
body.dark-mode .slider { background: #555; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--primary); cursor: pointer; }
.slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--primary); cursor: pointer; border: none; }
.btn-group { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; justify-content: flex-start; }
.photo-comparison { display: flex; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; justify-content: center; width: 100%; }
.original-photo, .modified-photo { flex: 1; border: 1px solid var(--border-light); padding: 10px; border-radius: var(--border-radius); text-align: center; min-width: 200px; background-color: var(--light-bg); transition: background-color 0.3s ease, border-color 0.3s ease; }
body.dark-mode .original-photo, body.dark-mode .modified-photo { border-color: var(--border-dark); background-color: #2d2d2d; }
.original-photo img, .modified-photo img { max-width: 100%; height: auto; max-height: 300px; display: block; margin: 10px auto 0; object-fit: contain; }
.photo-title { font-weight: 500; margin-bottom: 5px; }
#backgroundStep .editor-wrapper > .modified-photo { order: 2; }
#backgroundStep .editor-wrapper > .nameplate-section { order: 1; }
.nameplate-section { flex: 1; min-width: 250px; }
.name-input { width: 100%; padding: 10px 15px; border-radius: var(--border-radius); border: 1px solid var(--border-light); margin-bottom: 15px; background-color: var(--light-bg); color: var(--text-dark); transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease; }
body.dark-mode .name-input { background: #333; border-color: var(--border-dark); color: var(--text-light); }
#nameplateSizeSlider { width: 100%; margin-top: 5px; margin-bottom: 5px; }
#nameplateSizeValue { display: inline-block; margin-left: 10px; font-size: 0.9em; }
.clothes-section { }
.gender-options { display: flex; gap: 15px; margin-bottom: 20px; flex-wrap: wrap; }
.gender-btn { padding: 10px 20px; border-radius: var(--border-radius); border: 1px solid var(--border-light); background: var(--light-bg); cursor: pointer; transition: all 0.3s; color: var(--text-dark); }
body.dark-mode .gender-btn { background: #333; border-color: var(--border-dark); color: var(--text-light); }
.gender-btn.active { background: var(--primary); color: var(--text-dark); border-color: var(--primary); }
body.dark-mode .gender-btn.active { color: var(--text-dark); }
.clothing-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; max-height: 150px; overflow-y: auto; padding: 5px; border: 1px solid var(--border-light); border-radius: var(--border-radius); margin-top: 15px; }
body.dark-mode .clothing-options { border-color: var(--border-dark); }
.clothing-option { border: 1px solid var(--border-light); border-radius: var(--border-radius); padding: 5px; text-align: center; cursor: pointer; transition: all 0.3s; background-color: var(--light-bg); }
body.dark-mode .clothing-option { background: #333; border-color: var(--border-dark); }
.clothing-option:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
body.dark-mode .clothing-option:hover { box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1); }
.clothing-option img { width: 100%; height: 80px; object-fit: contain; margin-bottom: 5px; }
.apply-clothing-btn { padding: 4px 8px !important; font-size: 12px !important; margin-top: 5px !important; }
#clothesCanvas { cursor: move; border: 2px dashed var(--primary); }
.layout-section { padding: 0 30px 30px 30px; }
.paper-size-options, .photo-count-options { display: flex; gap: 15px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
.paper-size-options .option-title, .photo-count-options .option-title { margin-right: 10px; font-weight: 500; }
.paper-size-options .btn, .photo-count-options .btn { background-color: #eee; color: #333; border: 1px solid #ccc; }
body.dark-mode .paper-size-options .btn, body.dark-mode .photo-count-options .btn { background-color: #444; color: #eee; border-color: #666; }
.paper-size-options .btn.active, .photo-count-options .btn.active { background: var(--secondary); color: white; border-color: var(--secondary); }
body.dark-mode .paper-size-options .btn.active, body.dark-mode .photo-count-options .btn.active { color: white; }
.photo-grid-container { overflow: auto; margin-top: 30px; border: 1px solid var(--border-light); padding: 15px; border-radius: var(--border-radius); background-color: #f9f9f9; display: flex; justify-content: center; align-items: flex-start; transition: background-color 0.3s ease, border-color 0.3s ease; }
body.dark-mode .photo-grid-container { border-color: var(--border-dark); background-color: #2a2a2a; }
.photo-grid { display: grid; margin-bottom: 0; justify-content: center; background-color: white; padding: var(--padding-size); box-sizing: border-box; border: 1px solid #ccc; transition: background-color 0.3s ease, border-color 0.3s ease; }
body.dark-mode .photo-grid { background-color: #333; border-color: #555; }
.grid-photo { background-size: cover; background-repeat: no-repeat; background-position: center; border: 1px solid black; box-sizing: border-box; position: relative; overflow: hidden; }
.container-4x6-portrait { width: 101.6mm; height: 152.4mm; grid-template-columns: repeat(3, 30mm); grid-template-rows: repeat(3, 40mm); gap: calc((101.6mm - 3 * 30mm) / 2); padding: calc((152.4mm - 3 * 40mm - 2 * ((101.6mm - 3 * 30mm) / 2)) / 2) calc((101.6mm - 3 * 30mm) / 2); }
.photo-4x6-portrait { width: 30mm; height: 40mm; }
.container-4x6-landscape { width: 152.4mm; height: 101.6mm; grid-template-columns: repeat(4, var(--photo-width)); grid-template-rows: repeat(2, var(--photo-height)); gap: var(--gap-size); padding: calc((101.6mm - 2 * var(--photo-height) - var(--gap-size)) / 2) calc((152.4mm - 4 * var(--photo-width) - 3 * var(--gap-size)) / 2); }
.photo-4x6-landscape { width: var(--photo-width); height: var(--photo-height); }
.container-a4 { width: var(--page-width); grid-template-columns: repeat(6, var(--photo-width)); gap: var(--gap-size); padding: var(--padding-size); }
.photo-a4 { width: var(--photo-width); height: var(--photo-height); border: 1px solid #999; }
.photo-index { position: absolute; top: 2px; left: 2px; background: rgba(0,0,0,0.5); color: white; padding: 2px 5px; font-size: 10px; border-radius: 3px; }
.step-btn-group { display: flex; justify-content: space-between; padding: 0 30px 30px 30px; margin-top: 20px; }
#layoutStep .step-btn-group { justify-content: flex-start; }
.step-btn-group .btn-primary, .step-btn-group .btn-secondary { min-width: 100px; }
.btn-container { margin: 15px auto; text-align: center; max-width: 600px; padding: 12px; background: var(--light-bg); box-shadow: 0 0 5px rgba(0,0,0,0.1); border-radius: var(--border-radius); transition: background-color 0.3s ease, box-shadow 0.3s ease; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
body.dark-mode .btn-container { background: #2d2d2d; box-shadow: 0 0 5px rgba(255,255,255,0.1); }
footer { background-color: var(--footer-bg); color: var(--footer-text); padding: 40px 20px 20px 20px; margin-top: 50px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto 30px auto; }
.footer-column h4 { font-size: 16px; font-weight: 600; color: #ffffff; margin-bottom: 15px; }
.footer-column p, .footer-column ul { font-size: 14px; line-height: 1.6; }
.footer-column ul { list-style: none; padding: 0; }
.footer-column ul li { margin-bottom: 8px; }
.footer-column ul li a { color: var(--footer-text); text-decoration: none; transition: color 0.3s ease; }
.footer-column ul li a:hover { color: var(--primary); }
.footer-copyright { text-align: center; font-size: 13px; border-top: 1px solid #333; padding-top: 20px; max-width: 1200px; margin: 0 auto; }
.hidden { display: none !important; }
.error { color: #dc3545; margin-top: 10px; text-align: center; font-weight: bold; }
#bgCanvas { display: none; }
.overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 99; transition: opacity 0.3s ease-in-out; }
.overlay.active { display: block; opacity: 1; }
.user-dropdown { position: relative; display: inline-block; }
.dropdown-toggle { background-color: transparent; border: 1px solid var(--border-light); color: var(--text-dark); padding: 8px 15px; font-size: 14px; font-weight: 500; border-radius: var(--border-radius); cursor: pointer; display: flex; align-items: center; gap: 8px; transition: background-color 0.3s ease, border-color 0.3s ease; }
body.dark-mode .dropdown-toggle { color: var(--text-light); border-color: var(--border-dark); }
.dropdown-toggle:hover { background-color: #f0f0f0; }
body.dark-mode .dropdown-toggle:hover { background-color: #333; }
.dropdown-toggle .arrow { font-size: 10px; transition: transform 0.3s ease; }
.dropdown-menu { display: none; position: absolute; right: 0; top: 100%; margin-top: 5px; background-color: var(--light-bg); border: 1px solid var(--border-light); border-radius: var(--border-radius); box-shadow: var(--soft-shadow); min-width: 200px; z-index: 110; overflow: hidden; }
body.dark-mode .dropdown-menu { background-color: var(--dark-bg); border-color: var(--border-dark); box-shadow: var(--soft-shadow-dark); }
.dropdown-menu.show { display: block; }
.dropdown-menu ul { list-style: none; padding: 0; margin: 0; }
.dropdown-menu ul li a { display: block; padding: 12px 20px; color: var(--text-dark); text-decoration: none; font-size: 14px; transition: background-color 0.2s ease, color 0.2s ease; white-space: nowrap; }
body.dark-mode .dropdown-menu ul li a { color: var(--text-light); }
.dropdown-menu ul li a:hover { background-color: #f5f5f5; color: var(--secondary); }
.dropdown-menu li.credits-item { margin: 8px 15px; padding: 0; }
.dropdown-menu li.credits-item a.credits-display { display: block; background-color: var(--primary); color: var(--text-dark) !important; padding: 10px 15px; border-radius: 30px; font-weight: 500; text-align: center; text-decoration: none; white-space: nowrap; transition: all 0.2s ease-in-out; }
.dropdown-menu li.credits-item a.credits-display:hover { background-color: var(--button-primary-hover); transform: translateY(-1px) scale(1.02); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); color: var(--text-dark) !important; }
.dropdown-menu li.credits-item:hover, body.dark-mode .dropdown-menu li.credits-item:hover { background-color: transparent !important; }
body.dark-mode .dropdown-menu ul li a:hover { background-color: #333; }
@media (max-width: 992px) { header { flex-wrap: nowrap; } .mobile-menu-button { display: block; } .header-right { } nav#mainNav { position: fixed; top: 0; right: -280px; width: 250px; height: 100vh; background-color: var(--light-bg); border-left: 1px solid var(--border-light); padding-top: 80px; flex-direction: column; z-index: 101; transform: translateX(0); transition: right 0.3s ease-in-out; } body.dark-mode nav#mainNav { background-color: #3d2b1f; border-left: 1px solid var(--border-dark); } nav#mainNav.nav-active { right: 0; } nav#mainNav ul { flex-direction: column; gap: 0; width: 100%; } nav#mainNav ul li { width: 100%; } nav#mainNav ul li a { display: block; padding: 15px 25px; border-bottom: 1px solid var(--border-light); text-align: right; } body.dark-mode nav#mainNav ul li a { border-bottom: 1px solid var(--border-dark); } nav#mainNav ul li:last-child a { border-bottom: none; } .main-title { font-size: 2rem; } #uploadStep .step-content-wrapper { flex-direction: column; } .image-preview-container { min-height: 300px; } .editor-wrapper { flex-direction: column; gap: 20px; } .editor-wrapper > .editor-tools { order: 1; } .editor-wrapper > .image-preview-container-steps { order: 2; min-width: 100%; } #clothesStep .editor-wrapper > .image-preview-container-steps { order: 2; } #clothesStep .editor-wrapper > .editor-tools { order: 1; } #backgroundStep .editor-wrapper > .modified-photo { order: 2; min-width: 100%; } #backgroundStep .editor-wrapper > .nameplate-section { order: 1; min-width: 100%; } #editStep .editor-wrapper > .editor-tools { order: 1; } #editStep .editor-wrapper > .image-preview-container-steps { order: 2; } #borderStep .editor-wrapper > .editor-tools { order: 1; } #borderStep .editor-wrapper > .image-preview-container-steps { order: 2; } .photo-comparison { flex-direction: column; align-items: center; } .original-photo, .modified-photo { width: 100%; max-width: 300px; } }
@media (max-width: 768px) { .main-container { padding: 0 15px; } header { padding: 10px 15px; } .logo { font-size: 20px; } .header-right { gap: 10px; } .header-btn { padding: 6px 12px; font-size: 13px; } .main-title { font-size: 1.8rem; margin: 30px 0 20px 0; } .step-container { padding: 0; } #uploadStep .step-content-wrapper, .image-editor-container, .layout-section, .step-btn-group { padding-left: 20px; padding-right: 20px; } .step-header { padding-left: 20px; padding-right: 20px; } #uploadStep .step-content-wrapper { padding-top: 20px; padding-bottom: 20px; } .image-editor-container { padding-top: 20px; padding-bottom: 20px; } .layout-section { padding-top: 20px; padding-bottom: 20px; } .step-btn-group { padding-bottom: 20px; } .size-options-wrapper { padding-left: 20px; padding-right: 20px; padding-bottom: 20px; } .size-options { flex-direction: column; align-items: stretch; gap: 15px; } .select-box { min-width: unset; width: 100%; } .clothing-options { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); } #imagePreview, #processedImage, #clothesCanvas, #uploadImagePreview, #noBgImg, #borderPreviewImage { max-height: 350px; } .footer-content { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; } .container-4x6-portrait, .container-4x6-landscape, .container-a4 { width: 95%; height: auto; padding: 5mm; margin: 10px auto; } .container-4x6-portrait { grid-template-columns: repeat(3, 1fr); gap: 1mm; } .photo-4x6-portrait { width: 100%; aspect-ratio: 30 / 40; height: auto; } .container-4x6-landscape { grid-template-columns: repeat(4, 1fr); gap: 1mm; } .photo-4x6-landscape { width: 100%; aspect-ratio: 35 / 47; height: auto; } .container-a4 { grid-template-columns: repeat(3, 1fr); gap: 1mm; } .photo-a4 { width: 100%; aspect-ratio: 35 / 47; height: auto; } .btn-container { padding: 8px; } }
@media (max-width: 480px) { .main-container { padding: 0 10px; } header { padding: 10px; } .header-right { flex-wrap: wrap; justify-content: center; gap: 5px; } .main-title { font-size: 1.5rem; } #uploadStep .step-content-wrapper, .image-editor-container, .layout-section, .step-btn-group, .step-header, .size-options-wrapper { padding-left: 15px; padding-right: 15px; } .upload-container, .image-preview-container { padding: 25px; min-height: 250px; } .image-preview-container { min-height: 300px; } .btn { padding: 8px 15px; font-size: 14px; } .clothing-options { grid-template-columns: repeat(2, 1fr); gap: 10px; max-height: 300px; } .clothing-option img { height: 80px; } #imagePreview, #processedImage, #clothesCanvas, #uploadImagePreview, #noBgImg, #borderPreviewImage { max-height: 300px; } .footer-content { grid-template-columns: 1fr; text-align: center; } .footer-column h4 { margin-top: 15px; } .footer-column:first-child h4 { margin-top: 0; } .footer-copyright { font-size: 12px; } .container-a4 { grid-template-columns: repeat(2, 1fr); } .container-4x6-portrait { grid-template-columns: repeat(2, 1fr); } .container-4x6-landscape { grid-template-columns: repeat(2, 1fr); } .btn-container { flex-direction: column; } }
.history-container { overflow-x: auto; background: var(--light-bg); border-radius: var(--border-radius); border: 1px solid var(--border-light); box-shadow: var(--soft-shadow); }
body.dark-mode .history-container { background: #3d2b1f; border-color: var(--border-dark); }
.history-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.history-table th, .history-table td { padding: 15px; text-align: left; border-bottom: 1px solid var(--border-light); }
body.dark-mode .history-table th, body.dark-mode .history-table td { border-bottom-color: var(--border-dark); }
.history-table th { font-weight: 600; font-size: 14px; background-color: #faf8e9; }
body.dark-mode .history-table th { background-color: #2c251e; }
.history-table tbody tr:last-child td { border-bottom: none; }
.history-table tbody tr:hover { background-color: #fefdf5; }
body.dark-mode .history-table tbody tr:hover { background-color: #4a3c32; }
.points-positive { color: #28a745; font-weight: bold; }
.points-negative { color: #dc3545; font-weight: bold; }
.status-successful, .status-completed { padding: 4px 10px; border-radius: 15px; font-size: 12px; font-weight: 500; color: #fff; }
.status-successful { background-color: #28a745; }
.status-completed { background-color: var(--button-secondary-bg); }
@media screen and (max-width: 768px) { .history-table thead { display: none; } .history-table, .history-table tbody, .history-table tr, .history-table td { display: block; width: 100%; } .history-table tr { margin-bottom: 15px; } .history-table td { text-align: right; padding-left: 50%; position: relative; border-bottom: none; } .history-table td:last-child { border-bottom: 1px solid var(--border-light); } body.dark-mode .history-table td:last-child { border-bottom: 1px solid var(--border-dark); } .history-table td::before { content: attr(data-label); position: absolute; left: 15px; width: calc(50% - 30px); padding-right: 10px; white-space: nowrap; text-align: left; font-weight: bold; } }
.content-box { background: var(--light-bg); border: 1px solid var(--border-light); border-radius: var(--border-radius); padding: 30px; box-shadow: var(--soft-shadow); margin: 30px auto; max-width: 1140px; }
body.dark-mode .content-box { background: #3d2b1f; border-color: var(--border-dark); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 8px; }
.form-input { width: 100%; padding: 12px 15px; border: 1px solid var(--border-light); border-radius: var(--border-radius); background-color: var(--light-bg); color: var(--text-dark); font-size: 16px; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
body.dark-mode .form-input { background-color: #2c251e; border-color: var(--border-dark); color: var(--text-light); }
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(251, 203, 10, 0.2); }
.btn-full { width: 100%; padding: 12px; margin-top: 10px; }
.notification { padding: 15px 20px; margin: 20px auto; border-radius: var(--border-radius); font-weight: 500; font-size: 16px; max-width: 1100px; text-align: center; border-left: 5px solid #fff; box-shadow: var(--soft-shadow); position: relative; z-index: 1001; }
.notification.success { background-color: #d4edda; color: #155724; border-left-color: #28a745; }
.notification.error { background-color: #f8d7da; color: #721c24; border-left-color: #dc3545; }
.notification.info { background-color: #cce5ff; color: #004085; border-left-color: #007bff; }
.loader-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(255, 255, 255, 0.8); display: flex; justify-content: center; align-items: center; z-index: 10; border-radius: var(--border-radius); }
.loader { border: 5px solid #f3f3f3; border-top: 5px solid var(--primary); border-radius: 50%; width: 50px; height: 50px; animation: spin 1s linear infinite; }
body.dark-mode .loader-overlay { background-color: rgba(42, 42, 42, 0.8); }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.custom-alert-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); display: flex; justify-content: center; align-items: center; z-index: 2000; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.custom-alert-overlay.show { opacity: 1; visibility: visible; }
.custom-alert-box { background: var(--light-bg); padding: 0; border-radius: var(--border-radius); box-shadow: 0 10px 30px rgba(0,0,0,0.1); width: 90%; max-width: 450px; text-align: center; transform: scale(0.9); transition: transform 0.3s ease; border-top: 5px solid var(--primary); overflow: hidden; }
.custom-alert-overlay.show .custom-alert-box { transform: scale(1); }
body.dark-mode .custom-alert-box { background: #2d2d2d; box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.custom-alert-box.alert-error { border-top-color: #dc3545; }
.custom-alert-box .alert-title { margin: 0; font-size: 22px; font-weight: 600; padding: 20px; }
.custom-alert-box.alert-error .alert-title { color: #dc3545; }
.custom-alert-box .alert-message { padding: 0 30px 25px 30px; font-size: 16px; line-height: 1.6; }
.custom-alert-box .custom-modal-footer { padding: 20px; background-color: #f7f7f7; display: flex; justify-content: center; gap: 15px; }
body.dark-mode .custom-alert-box .custom-modal-footer { background-color: #3a3a3a; }
.page-info-sections { padding: 40px 0; }
.info-section { margin: 60px 0; }
.section-title { font-size: 2.2rem; font-weight: 600; margin-bottom: 20px; color: var(--text-dark); }
body.dark-mode .section-title { color: var(--text-light); }
.section-subtitle { font-size: 1.1rem; color: #666; margin-bottom: 40px; max-width: 700px; margin-left: auto; margin-right: auto; }
body.dark-mode .section-subtitle { color: #ccc; }
.text-center { text-align: center; }
.how-it-works-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 30px; }
.how-it-works-card { background: var(--light-bg); padding: 30px; border-radius: var(--border-radius); border: 1px solid var(--border-light); transition: all 0.3s ease; }
body.dark-mode .how-it-works-card { background: #3d2b1f; border-color: var(--border-dark); }
.how-it-works-card:hover { transform: translateY(-5px); box-shadow: var(--soft-shadow); }
body.dark-mode .how-it-works-card:hover { box-shadow: var(--soft-shadow-dark); }
.how-it-works-card .card-icon { font-size: 2.5rem; margin-bottom: 15px; line-height: 1; }
.how-it-works-card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; }
.how-it-works-card p { font-size: 0.95rem; line-height: 1.6; color: #555; }
body.dark-mode .how-it-works-card p { color: #bbb; }
.features-grid { display: grid; gap: 25px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card { background-color: var(--light-bg); border: 1px solid var(--border-light); padding: 25px; border-radius: var(--border-radius); border-left: 5px solid var(--primary); transition: all 0.3s ease; }
body.dark-mode .feature-card { background-color: #3d2b1f; border-color: var(--border-dark); }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--soft-shadow); }
body.dark-mode .feature-card:hover { box-shadow: var(--soft-shadow-dark); }
.feature-card h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 10px; }
.feature-card p { line-height: 1.6; color: #555; }
body.dark-mode .feature-card p { color: #bbb; }
.content-box-style { background: var(--light-bg); border: 1px solid var(--border-light); border-radius: var(--border-radius); padding: 30px 40px; box-shadow: var(--soft-shadow); }
body.dark-mode .content-box-style { background: #3d2b1f; border-color: var(--border-dark); }
.content-box-style .section-title { text-align: left; font-size: 1.8rem; }
.content-box-style p { margin-bottom: 20px; line-height: 1.7; }
.subsection-title { font-size: 1.4rem; font-weight: 600; margin-top: 25px; margin-bottom: 10px; padding-bottom: 5px; border-bottom: 2px solid var(--primary); display: inline-block; }
.faq-container { max-width: 800px; margin: 30px auto 0 auto; display: flex; flex-direction: column; gap: 15px; }
.faq-item { border: 1px solid var(--border-light); border-radius: var(--border-radius); background: var(--light-bg); transition: background-color 0.3s ease; }
body.dark-mode .faq-item { border-color: var(--border-dark); background: #3d2b1f; }
.faq-item summary { font-size: 1.1rem; font-weight: 500; padding: 20px; cursor: pointer; list-style: none; position: relative; transition: color 0.3s ease; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--primary); transition: transform 0.3s ease; }
.faq-item[open] > summary { color: var(--primary); }
.faq-item[open] > summary:after { transform: translateY(-50%) rotate(45deg); }
.faq-content { padding: 0 20px 20px 20px; line-height: 1.6; }
.faq-content p { margin: 0; }
.tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.tip-card { text-align: center; }
.tip-icon { font-size: 3rem; color: var(--primary); margin-bottom: 20px; }
.tip-card h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 10px; }
.tip-card p { line-height: 1.6; color: #555; }
body.dark-mode .tip-card p { color: #bbb; }
#promoContainer { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.comparison-slider { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1 / 1; margin: auto; overflow: hidden; border-radius: 8px; }
.comparison-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.comparison-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.after-image { clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%); }
.slider-handle { position: absolute; top: 0; left: 50%; transform: translateX(-50%); height: 100%; width: 4px; background-color: rgba(255, 255, 255, 0.7); cursor: ew-resize; z-index: 40; display: flex; align-items: center; justify-content: center; }
.slider-arrow-container { width: 44px; height: 44px; background: white; border-radius: 50%; position: absolute; z-index: 50; box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.5); display: flex; justify-content: space-evenly; align-items: center; }
.slider-arrow { width: 0; height: 0; border-style: solid; }
.left-arrow { border-width: 8px 10px 8px 0; border-color: transparent #333 transparent transparent; }
.right-arrow { border-width: 8px 0 8px 10px; border-color: transparent transparent transparent #333; }
@media (max-width: 768px) { .section-title { font-size: 1.8rem; } .content-box-style { padding: 20px; } .tips-grid { grid-template-columns: 1fr; } }
@media print { @page { size: auto; margin: 0; } body { background-color: white !important; color: black !important; } body * { visibility: hidden; box-shadow: none !important; border: none !important; } .photo-grid-container, .photo-grid-container * { visibility: visible; border: none !important; } .photo-grid { position: absolute; top: 0; left: 0; margin: 0; background: none !important; visibility: visible; padding: 0 !important; border: none !important; display: grid !important; } .container-4x6-portrait { width: 101.6mm !important; height: 152.4mm !important; padding: calc((152.4mm - 3 * 40mm - 2 * ((101.6mm - 3 * 30mm) / 2)) / 2) calc((101.6mm - 3 * 30mm) / 2) !important; gap: calc((101.6mm - 3 * 30mm) / 2) !important; grid-template-columns: repeat(3, 30mm) !important; grid-template-rows: repeat(3, 40mm) !important; } .container-4x6-landscape { width: 152.4mm !important; height: 101.6mm !important; padding: calc((101.6mm - 2 * var(--photo-height) - var(--gap-size)) / 2) calc((152.4mm - 4 * var(--photo-width) - 3 * var(--gap-size)) / 2) !important; gap: var(--gap-size) !important; grid-template-columns: repeat(4, var(--photo-width)) !important; grid-template-rows: repeat(2, var(--photo-height)) !important; } .container-a4 { width: var(--page-width) !important; height: var(--page-height) !important; padding: var(--padding-size) !important; gap: var(--gap-size) !important; grid-template-columns: repeat(6, var(--photo-width)) !important; grid-auto-rows: var(--photo-height) !important; } .grid-photo { visibility: visible !important; border: 1px solid black !important; background-color: white !important; box-sizing: border-box !important; overflow: hidden !important; background-size: cover !important; background-repeat: no-repeat !important; background-position: center !important; } .photo-4x6-portrait, .photo-4x6-landscape, .photo-a4 { visibility: visible !important; } .container-4x6-portrait .photo-4x6-portrait { width: 30mm !important; height: 40mm !important; } .container-4x6-landscape .photo-4x6-landscape { width: var(--photo-width) !important; height: var(--photo-height) !important; } .container-a4 .photo-a4 { width: var(--photo-width) !important; height: var(--photo-height) !important; } .photo-index { display: none !important; } header, .step-container, .btn-container, .paper-size-options, .photo-count-options, .download-section, .step-btn-group, footer, .main-title, .size-options-wrapper, .mobile-menu-button, .overlay, .rotation-slider-wrapper, .page-info-sections { display: none !important; visibility: hidden !important; } }
.bg-remover-grid, .photo-colorizer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; padding: 20px; }
.preview-container { border: 2px dashed #ccc; border-radius: var(--border-radius); padding: 10px; display: flex; justify-content: center; align-items: center; background-color: #f9f9f9; min-height: 300px; position: relative; }
body.dark-mode .preview-container { border-color: #555; background-color: #2a2a2a; }
#result-container { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
#result-content { flex-grow: 1; display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; }
#result-container img#processedImage { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
#result-controls { margin-top: 15px; }
.hero { text-align: center; padding: 20px; margin-bottom: 20px; }
.hero-title { font-size: 2.5rem; font-weight: 600; margin-bottom: 10px; }
.hero-subtitle { font-size: 1.125rem; color: #6c757d; max-width: 500px; margin: 0 auto; }
body.dark-mode .hero-subtitle { color: #adb5bd; }
.tool-container.content-box { position: relative; padding: 30px; }
.result-area, .upload-area { height: 100%; }
.upload-area { text-align: center; border: 2px dashed #e9ecef; background-color: #f8f9fa; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 20px; border-radius: var(--border-radius); }
body.dark-mode .upload-area { border-color: var(--border-dark); background-color: var(--dark-bg); }
.upload-area .btn#selectImageBtnColorize { width: 100%; max-width: 250px; padding: 12px; font-size: 1rem; }
.comparison-image img, #placeholder-area img { object-fit: contain !important; width: 100%; height: 100%; }
.download-button-container { text-align: center; margin-top: 20px; }
#colorizeDownloadBtn { width: auto; display: inline-block; }
.comparison-slider .image-label { position: absolute; top: 10px; background-color: rgba(0, 0, 0, 0.6); color: white; padding: 5px 10px; border-radius: 4px; font-size: 14px; z-index: 10; }
.before-image .image-label { left: 10px; }
.after-image .image-label { right: 10px; }
.loading-indicator { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(255, 255, 255, 0.85); display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 50; border-radius: var(--border-radius); }
.loading-indicator .spinner { border: 4px solid rgba(0, 0, 0, 0.1); border-left-color: var(--primary); border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite; margin-bottom: 15px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 992px) { .bg-remover-grid, .photo-colorizer-grid { grid-template-columns: 1fr !important; gap: 30px !important; } .hero-title { font-size: 2rem; } }
.ad-container { width: 100%; max-width: 970px; margin: 40px auto; padding: 20px 0; text-align: center; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); min-height: 100px; }
body.dark-mode .ad-container { border-top-color: var(--border-dark); border-bottom-color: var(--border-dark); }
.ad-label { font-size: 12px; color: #888; margin-bottom: 10px; }
body.dark-mode .ad-label { color: #777; }
@media (max-width: 768px) { .ad-container { margin: 30px auto; } }
.guide-label-with-tooltip { display: flex; align-items: center; gap: 8px; margin: 0 30px 20px 30px; padding: 10px; background-color: #f7f7f7; border-radius: 5px; border: 1px solid var(--border-light); }
body.dark-mode .guide-label-with-tooltip { background-color: #3a3a3a; border-color: var(--border-dark); }
.guide-label-with-tooltip h4 { margin: 0; font-size: 1em; font-weight: 500; }
.tooltip-container { position: relative; display: inline-block; cursor: pointer; margin: 0 5px; z-index: 1000; }
.tooltip-icon { font-size: 14px; font-weight: bold; color: white; background-color: var(--primary); border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; }
.tooltip-text { visibility: hidden; width: 280px; background-color: #333; color: #fff; text-align: left; border-radius: 6px; padding: 10px; position: absolute; z-index: 999; bottom: 140%; left: 50%; margin-left: -140px; opacity: 0; transition: opacity 0.3s; font-size: 12px; font-weight: normal; line-height: 1.6; }
.tooltip-text::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px; border-width: 5px; border-style: solid; border-color: #333 transparent transparent transparent; }
.tooltip-container:hover .tooltip-text { visibility: visible; opacity: 1; }
#mainNav ul li.dropdown { position: relative; }
#mainNav ul li.dropdown > a .dropdown-icon { font-size: 0.7em; margin-left: 5px; transition: transform 0.3s ease; display: inline-block; }
#mainNav ul li .dropdown-menu { list-style: none; padding: 0; margin: 0; }
#mainNav .dropdown-menu li a { display: flex; align-items: center; }
#mainNav .dropdown-menu li a i { margin-right: 12px; width: 20px; text-align: center; }
@media (min-width: 769px) { #mainNav ul li.dropdown .dropdown-menu { display: none; position: absolute !important; top: 100% !important; left: 0 !important; margin-top: 0 !important; min-width: 280px !important; z-index: 9999 !important; padding: 8px 0 !important; background-color: #ffffff !important; border: 1px solid #e5e7eb !important; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important; border-radius: 8px !important; opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s ease; } body.dark-mode #mainNav ul li.dropdown .dropdown-menu { background-color: #2d2d2d !important; border-color: #4a4a4a !important; } #mainNav ul li.dropdown:hover .dropdown-menu { display: block; opacity: 1; visibility: visible; } #mainNav .dropdown-menu li a { white-space: nowrap !important; padding: 10px 20px !important; font-size: 15px !important; font-weight: 400 !important; color: #333 !important; } body.dark-mode #mainNav .dropdown-menu li a { color: #f1f1f1 !important; } #mainNav .dropdown-menu li a:hover { color: #4968ec !important; background-color: rgba(59, 130, 246, 0.1) !important; } #mainNav .dropdown-menu li.active a { color: inherit !important; font-weight: 600 !important; } }
@media (max-width: 768px) { #mainNav > ul > li.dropdown > ul.dropdown-menu { display: none !important; padding: 8px 0 !important; overflow: hidden; background-color: #f0f2f5 !important; border-radius: 8px !important; margin-top: 8px !important; margin-left: 15px !important; margin-right: 15px !important; } body.dark-mode #mainNav > ul > li.dropdown > ul.dropdown-menu { background-color: #3a3a3a !important; } #mainNav > ul > li.dropdown.open > ul.dropdown-menu { display: block !important; } #mainNav > ul > li.dropdown.open > a .dropdown-icon { transform: rotate(180deg); } #mainNav .dropdown-menu li a { padding: 10px 25px !important; white-space: normal; color: #333333 !important; font-weight: 400 !important; background-color: transparent !important; } body.dark-mode #mainNav .dropdown-menu li a { color: #f1f1f1 !important; } #mainNav .dropdown-menu li.active > a { color: #4968ec !important; font-weight: 600 !important; } }
.receipt-container { background: var(--light-bg); border: 1px solid var(--border-light); border-radius: var(--border-radius); box-shadow: var(--soft-shadow); max-width: 600px; margin: 40px auto; padding: 30px; transition: background-color 0.3s ease, border-color 0.3s ease; }
body.dark-mode .receipt-container { background: #3d2b1f; border-color: var(--border-dark); box-shadow: var(--soft-shadow-dark); }
.receipt-header { text-align: center; border-bottom: 1px solid var(--border-light); padding-bottom: 20px; margin-bottom: 25px; }
body.dark-mode .receipt-header { border-bottom-color: var(--border-dark); }
.receipt-header h1 { font-size: 2rem; font-weight: 600; color: var(--secondary); margin-bottom: 8px; }
.receipt-header p { font-size: 1rem; color: #555; }
body.dark-mode .receipt-header p { color: var(--text-light); }
.receipt-body { display: flex; flex-direction: column; gap: 15px; }
.receipt-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.receipt-item:last-child { border-bottom: none; }
body.dark-mode .receipt-item { border-bottom-color: var(--border-dark); }
.receipt-item span:first-child { font-weight: 500; color: #444; }
body.dark-mode .receipt-item span:first-child { color: #ccc; }
.receipt-item span:last-child { font-weight: 600; color: var(--text-dark); }
body.dark-mode .receipt-item span:last-child { color: var(--text-light); }
.receipt-footer { display: flex; justify-content: flex-end; gap: 15px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border-light); }
body.dark-mode .receipt-footer { border-top-color: var(--border-dark); }
@media (max-width: 768px) { .receipt-container { padding: 20px; margin: 20px auto; } .receipt-header h1 { font-size: 1.8rem; } }
@media (max-width: 480px) { .receipt-footer { flex-direction: column; align-items: stretch; } .receipt-footer .btn { width: 100%; margin: 5px 0; } }
@media print { body, .main-container { background-color: #fff !important; padding: 0; margin: 0; } body * { visibility: hidden; } .receipt-container, .receipt-container * { visibility: visible; } .receipt-container { position: absolute; left: 0; top: 0; width: 100%; max-width: 100%; box-shadow: none; border: none; margin: 0; padding: 0; } .receipt-footer { display: none; } }
.generated-history-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; margin-top: 30px; padding: 0 15px; }
@media (min-width: 600px) { .generated-history-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
@media (min-width: 992px) { .generated-history-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); padding: 0; } }
.history-card { background: var(--light-bg); border: 1px solid var(--border-light); border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--soft-shadow); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
body.dark-mode .history-card { background: #3d2b1f; border-color: var(--border-dark); }
.history-card:hover { transform: translateY(-5px); box-shadow: var(--soft-shadow); }
.history-image-link { display: block; overflow: hidden; background-color: #f0f0f0; }
body.dark-mode .history-image-link { background-color: #3a3a3a; }
.history-image-wrapper { width: 100%; aspect-ratio: 1 / 1; display: flex; justify-content: center; align-items: center; }
.history-image-wrapper img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.history-card:hover .history-image-wrapper img { transform: scale(1.05); }
.history-card-footer { padding: 10px 15px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-light); margin-top: auto; }
body.dark-mode .history-card-footer { border-top-color: var(--border-dark); }
.generation-date { font-size: 0.75em; color: #6c757d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-grow: 1; }
body.dark-mode .generation-date { color: #adb5bd; }
.btn-download-history { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background-color: var(--primary); color: white; text-decoration: none; transition: background-color 0.2s; flex-shrink: 0; margin-left: 10px; }
.btn-download-history:hover { background-color: var(--secondary); }
.no-records-found { grid-column: 1 / -1; text-align: center; padding: 50px; background: var(--light-bg); border: 1px solid var(--border-light); border-radius: var(--border-radius); font-size: 1.1rem; color: #6c757d; }
body.dark-mode .no-records-found { background: #3d2b1f; border-color: var(--border-dark); color: #adb5bd; }
.main-container { max-width: 1200px; margin: 20px auto; padding: 20px; box-sizing: border-box; }
.main-title { text-align: center; margin-bottom: 30px; font-size: 2.2em; color: var(--text-color); }
.pagination-container { display: flex; justify-content: center; align-items: center; margin-top: 30px; padding: 10px; gap: 5px; }
.pagination-container a, .pagination-container span { display: inline-block; padding: 8px 14px; margin: 0 2px; border: 1px solid var(--border-light); color: var(--text-dark); text-decoration: none; border-radius: var(--border-radius); transition: background-color 0.3s, color 0.3s; font-size: 14px; }
body.dark-mode .pagination-container a, body.dark-mode .pagination-container span { border-color: var(--border-dark); color: var(--text-light); }
.pagination-container a:hover { background-color: #f0f0f0; border-color: #ccc; }
body.dark-mode .pagination-container a:hover { background-color: #3a3a3a; }
.pagination-container .active { background-color: var(--secondary); color: white; border-color: var(--secondary); cursor: default; }
@media (max-width: 480px) { .pagination-container a, .pagination-container span { padding: 6px 10px; font-size: 12px; } }
.ai-editor-mode-switcher { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-light); }
body.dark-mode .ai-editor-mode-switcher { border-bottom-color: var(--border-dark); }
.ai-editor-mode-switcher button { background: none; border: none; padding: 0.75rem 1.5rem; font-size: 1rem; font-weight: 600; cursor: pointer; color: #6c757d; border-bottom: 3px solid transparent; transition: color 0.3s, border-color 0.3s; }
body.dark-mode .ai-editor-mode-switcher button { color: #adb5bd; }
.ai-editor-mode-switcher button.active { color: var(--secondary); border-bottom-color: var(--secondary); }
.ai-editor-panels { display: flex; gap: 2rem; }
.ai-editor-panel { flex: 1; display: flex; flex-direction: column; }
.panel-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.5rem; }
.subtitle { font-size: 0.9rem; color: #6c757d; margin-bottom: 1rem; }
body.dark-mode .subtitle { color: #adb5bd; }
.prompt-section { margin-top: 1.5rem; }
#image-preview-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; min-height: 120px; border: 2px dashed var(--border-light); border-radius: 8px; padding: 1rem; background-color: #f9f9f9; }
body.dark-mode #image-preview-container { border-color: var(--border-dark); background-color: #2a2a2a; }
.preview-thumbnail-wrapper { position: relative; width: 100px; height: 100px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-light); }
.preview-thumbnail { width: 100%; height: 100%; object-fit: cover; }
.image-box { width: 100%; aspect-ratio: 1 / 1; border: 2px dashed var(--border-light); border-radius: 8px; display: flex; justify-content: center; align-items: center; flex-direction: column; margin-bottom: 1rem; position: relative; overflow: hidden; background-color: #f9f9f9; }
body.dark-mode .image-box { border-color: var(--border-dark); background-color: #2a2a2a; }
.image-box img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.prompt-textarea { width: 100%; height: 120px; border: 1px solid var(--border-light); border-radius: var(--border-radius); padding: 0.75rem; font-size: 1rem; resize: vertical; background-color: var(--light-bg); color: var(--text-dark); }
body.dark-mode .prompt-textarea { background-color: #3a3a3a; border-color: var(--border-dark); color: var(--text-light); }
.prompt-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(251, 203, 10, 0.2); }
.generate-section { display: flex; justify-content: center; margin-top: 2rem; }
@media (max-width: 992px) { .ai-editor-panels { flex-direction: column; } }
#image-preview-container { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 1rem; min-height: 200px; padding: 1rem; border: 2px dashed var(--border-light); border-radius: 8px; background-color: #f9f9f9; transition: background-color 0.3s, border-color 0.3s; }
body.dark-mode #image-preview-container { border-color: var(--border-dark); background-color: #2a2a2a; }
.drop-zone-placeholder { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; color: #aaa; pointer-events: none; }
.drop-zone-placeholder i { font-size: 3rem; margin-bottom: 10px; }
#image-preview-container.drag-over { border-color: var(--primary); background-color: rgba(67, 97, 238, 0.05); }
body.dark-mode #image-preview-container.drag-over { background-color: rgba(67, 97, 238, 0.1); }
#uploaded-images-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 1rem; min-height: 200px; padding: 1rem; border: 2px dashed var(--border-light); border-radius: 8px; background-color: #f9f9f9; transition: background-color 0.3s, border-color 0.3s; }
body.dark-mode #uploaded-images-grid { border-color: var(--border-dark); background-color: #2a2a2a; }
.image-count-display { font-size: 0.8em; font-weight: normal; color: #6c757d; margin-left: 0.5rem; }
body.dark-mode .image-count-display { color: #adb5bd; }
.preview-thumbnail-wrapper { position: relative; width: 100px; height: 100px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-light); box-shadow: 0 2px 4px rgba(0,0,0,0.1); background-color: white; }
body.dark-mode .preview-thumbnail-wrapper { border-color: var(--border-dark); background-color: #333; }
.preview-thumbnail { width: 100%; height: 100%; object-fit: cover; }
.remove-image-btn { position: absolute; top: 5px; right: 5px; background-color: rgba(0, 0, 0, 0.6); color: white; border: none; border-radius: 50%; width: 24px; height: 24px; display: flex; justify-content: center; align-items: center; font-size: 0.8rem; cursor: pointer; transition: background-color 0.2s; opacity: 1; pointer-events: auto; }
.remove-image-btn:hover { background-color: rgba(220, 53, 69, 0.8); }
#uploaded-images-grid { cursor: pointer; }
#uploaded-images-grid .preview-thumbnail-wrapper, #uploaded-images-grid .remove-image-btn { cursor: default; }
.pricing-section { padding: 40px 0; background-color: #faf8e9; border-radius: var(--border-radius); margin-bottom: 50px; }
body.dark-mode .pricing-section { background-color: #2c251e; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; margin-top: 40px; align-items: stretch; }
.pricing-card { background: var(--light-bg); border: 1px solid var(--border-light); border-radius: var(--border-radius); padding: 30px; text-align: center; box-shadow: var(--soft-shadow); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; }
body.dark-mode .pricing-card { background: #1e1e1e; border-color: var(--border-dark); box-shadow: var(--soft-shadow-dark); }
.pricing-card:hover { transform: translateY(-8px); box-shadow: var(--soft-shadow); }
body.dark-mode .pricing-card:hover { box-shadow: var(--soft-shadow-dark); }
.pricing-card .card-subtitle { font-size: 0.9rem; color: #6c757d; margin-bottom: 20px; min-height: 40px; }
body.dark-mode .pricing-card .card-subtitle { color: #adb5bd; }
.pricing-card .price { font-size: 2.8rem; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
body.dark-mode .pricing-card .price { color: var(--text-light); }
.pricing-card .credits-tag { background-color: rgba(251, 203, 10, 0.2); color: var(--secondary); padding: 6px 12px; border-radius: 20px; font-weight: 500; font-size: 0.9rem; display: inline-block; margin: 0 auto 25px auto; }
body.dark-mode .pricing-card .credits-tag { background-color: var(--secondary); color: var(--text-light); }
.pricing-card ul { list-style: none; padding: 0; margin-bottom: 30px; text-align: left; flex-grow: 1; }
.pricing-card ul li { margin-bottom: 15px; font-size: 1rem; color: #333; padding-left: 28px; position: relative; }
.pricing-card ul li::before { content: '✓'; color: #16a34a; font-weight: bold; position: absolute; left: 0; top: 0; }
body.dark-mode .pricing-card ul li { color: var(--text-light); }
.pricing-card .btn-full { width: 100%; padding: 12px 15px; font-size: 0.95rem; font-weight: 600; margin-top: auto; text-decoration: none; text-align: center; border-radius: var(--border-radius); background-color: var(--secondary); border: 2px solid var(--secondary); transition: background-color 0.3s ease; color: white; }
.pricing-card.featured { border: 2px solid var(--primary); transform: scale(1.03); position: relative; }
.pricing-card.featured:hover { transform: scale(1.03) translateY(-8px); }
.section-subtitle { font-size: 1.1rem; color: #666; margin-bottom: 40px; max-width: 700px; margin-left: auto; margin-right: auto; text-align: center; }
body.dark-mode .section-subtitle { color: #ccc; }
.or-separator { display: flex; align-items: center; text-align: center; margin: 20px 0; }
.or-separator span { flex: 1; border-bottom: 1px solid #ddd; margin: 0 10px; color: #666; font-size: 14px; }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; border: 1px solid #ddd; border-radius: 5px; padding: 12px; font-size: 16px; font-weight: 500; cursor: pointer; width: 100%; margin: 10px 0; transition: background 0.3s ease; text-decoration: none; color: #333; }
.google-btn:hover { background: #f7f7f7; }
.google-btn img { width: 22px; height: 22px; }
.pricing-card.featured .btn-full { background-color: var(--primary); border-color: var(--primary); color: var(--text-dark); }
.pricing-card.featured .btn-full:hover { background-color: var(--button-primary-hover); }
/* === एडवांस AI एडिटर कंट्रोल्स के लिए नया CSS === */

.control-section {
    margin-top: 1.5rem;
}

.control-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.style-selector, .aspect-ratio-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.style-selector button, .aspect-ratio-selector button {
    background-color: #f0f0f0;
    border: 1px solid var(--border-light);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px; /* गोलाकार बटन */
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.dark-mode .style-selector button, 
body.dark-mode .aspect-ratio-selector button {
    background-color: #3a3a3a;
    border-color: var(--border-dark);
    color: var(--text-light);
}

.style-selector button.active, .aspect-ratio-selector button.active {
    background-color: var(--primary);
    color: var(--text-dark);
    border-color: var(--primary);
}

.style-selector button:hover, .aspect-ratio-selector button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* एडवांस ऑप्शन ड्रॉपडाउन */
.advanced-options details {
    border-top: 1px solid var(--border-light);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}
body.dark-mode .advanced-options details {
    border-top-color: var(--border-dark);
}
.advanced-options summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none; /* डिफ़ॉल्ट मार्कर हटाएं */
}
.advanced-options summary::-webkit-details-marker {
    display: none;
}
.advanced-options summary::after {
    content: ' ▼';
    font-size: 0.8em;
    display: inline-block;
    transition: transform 0.2s;
}
.advanced-options details[open] summary::after {
    transform: rotate(180deg);
}

/* रिजल्ट ग्रिड */
#result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
    height: 100%;
}

.result-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
}

body.dark-mode .result-item {
    background-color: #2a2a2a;
}