/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #000000;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(255, 20, 147, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 20, 147, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo h1 {
    background: linear-gradient(45deg, #ff1493, #8b00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #cccccc;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #ff1493;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(45deg, #ff1493, #8b00ff);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    font-weight: 500;
    color: #ffffff;
}

.logout-btn {
    background: none;
    border: none;
    color: #cccccc;
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.logout-btn:hover {
    color: #ff1493;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ffffff;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* Landing Page Styles */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-link-btn {
    background: none;
    border: 2px solid rgba(255, 20, 147, 0.3);
    color: #cccccc;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-link-btn:hover {
    border-color: #ff1493;
    color: #ff1493;
}

.platform-btn {
    background: linear-gradient(135deg, #ff1493 0%, #8b00ff 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.platform-btn:hover {
    background: linear-gradient(135deg, #8b00ff 0%, #ff1493 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 20, 147, 0.4);
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: #ffffff;
}

.gradient-text {
    background: linear-gradient(45deg, #ff1493, #8b00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #cccccc;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-btn.primary {
    background: linear-gradient(45deg, #ff1493, #8b00ff);
    color: white;
}

.hero-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.5);
}

.hero-btn.secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 20, 147, 0.3);
}

.hero-btn.secondary:hover {
    border-color: #ff1493;
    color: #ff1493;
    transform: translateY(-2px);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-placeholder {
    width: 400px;
    height: 400px;
    background: rgba(20, 20, 20, 0.8);
    border: 2px dashed rgba(255, 20, 147, 0.3);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    color: #cccccc;
    text-align: center;
}

.hero-image-placeholder i {
    font-size: 4rem;
    color: #ff1493;
}

.hero-image-placeholder span {
    font-size: 1.2rem;
    font-weight: 500;
}

.hero-image {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.3);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 20, 147, 0.5);
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: rgba(10, 10, 10, 0.5);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.3rem;
    color: #cccccc;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 20, 147, 0.3);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.3);
    border-color: #ff1493;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #ff1493, #8b00ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #cccccc;
    line-height: 1.6;
}

/* Gallery Section */
.gallery-section {
    padding: 6rem 0;
}

.gallery-cta {
    text-align: center;
    margin-top: 3rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #ff1493, #8b00ff);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.5);
}

/* Gallery Actions */
.gallery-actions {
    text-align: center;
    margin: 2rem 0;
}

.load-more-btn {
    background: rgba(255, 20, 147, 0.1);
    border: 2px solid rgba(255, 20, 147, 0.3);
    color: #ff1493;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.load-more-btn:hover {
    background: rgba(255, 20, 147, 0.2);
    border-color: #ff1493;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 20, 147, 0.3);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Dashboard */
.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-header h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 700;
}

.dashboard-header p {
    font-size: 1.2rem;
    color: #cccccc;
}

.generation-form {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 20, 147, 0.3);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(255, 20, 147, 0.2);
    margin-bottom: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #ffffff;
}

.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 20, 147, 0.3);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease;
    background: rgba(40, 40, 40, 0.8);
    color: #ffffff;
}

.form-group textarea:focus {
    outline: none;
    border-color: #ff1493;
}

.form-group textarea::placeholder {
    color: #888888;
}

.char-count {
    text-align: right;
    color: #cccccc;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.prompt-helper {
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(255, 20, 147, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #cccccc;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.4;
}

.prompt-helper i {
    color: #ff1493;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

/* Prompt Header */
.prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.random-idea-btn {
    background: linear-gradient(135deg, #ff1493 0%, #8b00ff 100%);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.random-idea-btn:hover {
    background: linear-gradient(135deg, #8b00ff 0%, #ff1493 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 20, 147, 0.4);
}

.random-idea-btn:active {
    transform: translateY(0);
}

.random-idea-btn i {
    font-size: 0.9rem;
}

/* Form Row Layout */
.form-row {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin: 1rem 0;
}

.form-col {
    flex: 1;
    min-width: 0; /* Allows flex items to shrink below their content size */
}

/* Privacy Toggle */
.privacy-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.toggle-text {
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: color 0.3s ease;
    z-index: 1;
    position: relative;
    color: #cccccc;
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider .toggle-text {
    color: #ffffff;
}

.toggle-label input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    width: 120px;
    height: 32px;
    background: #e0e0e0 !important;
    border-radius: 32px;
    position: relative;
    transition: all 0.3s ease;
    border: none !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: #ffffff !important;
    border-radius: 50%;
    top: 2px;
    right: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider {
    background: #ff1493 !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider::before {
    right: 92px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Additional toggle styles for better visibility */
.privacy-toggle .toggle-slider {
    background-color: #e0e0e0 !important;
    border: 2px solid #ddd !important;
    width: 120px !important;
}

.privacy-toggle .toggle-label input[type="checkbox"]:checked + .toggle-slider {
    background-color: #ff1493 !important;
    border: 2px solid #ff1493 !important;
}

.privacy-toggle .toggle-slider::before {
    background-color: #ffffff !important;
    border: 1px solid #ddd !important;
    width: 24px !important;
    height: 24px !important;
    right: 4px !important;
    top: 2px !important;
}

.privacy-toggle .toggle-label input[type="checkbox"]:checked + .toggle-slider::before {
    border: 1px solid #ff1493 !important;
    right: 92px !important;
}



.privacy-toggle small {
    color: #cccccc;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    font-style: italic;
}

/* Gender Toggle */
.gender-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gender-toggle .toggle-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    user-select: none;
}

.toggle-label-text {
    font-weight: 600;
    color: #ffffff;
    font-size: 1rem;
}

/* Apply same toggle styling to gender toggle */
.gender-toggle .toggle-slider {
    width: 120px;
    height: 32px;
    background: #e0e0e0 !important;
    border-radius: 32px;
    position: relative;
    transition: all 0.3s ease;
    border: none !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gender-toggle .toggle-slider::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: #ffffff !important;
    border-radius: 50%;
    top: 2px;
    right: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.gender-toggle .toggle-label input[type="checkbox"]:checked + .toggle-slider {
    background: #8b00ff !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.gender-toggle .toggle-label input[type="checkbox"]:checked + .toggle-slider::before {
    right: 92px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.gender-toggle .toggle-text {
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: color 0.3s ease;
    z-index: 1;
    position: relative;
    color: #333333;
}

.gender-toggle .toggle-label input[type="checkbox"]:checked + .toggle-slider .toggle-text {
    color: #ffffff;
}

/* Additional gender toggle styles for better visibility */
.gender-toggle .toggle-slider {
    background-color: #e0e0e0 !important;
    border: 2px solid #ddd !important;
    width: 120px !important;
}

.gender-toggle .toggle-label input[type="checkbox"]:checked + .toggle-slider {
    background-color: #8b00ff !important;
    border: 2px solid #8b00ff !important;
}

.gender-toggle .toggle-slider::before {
    background-color: #ffffff !important;
    border: 1px solid #ddd !important;
    width: 24px !important;
    height: 24px !important;
    right: 4px !important;
    top: 2px !important;
}

.gender-toggle .toggle-label input[type="checkbox"]:checked + .toggle-slider::before {
    border: 1px solid #8b00ff !important;
    right: 92px !important;
}

/* Body Part Label */
.body-part-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #ffffff;
    font-size: 1rem;
}

/* Form Select Dropdown */
.form-select {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 20, 147, 0.3);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    color: #ffffff;
    background: rgba(40, 40, 40, 0.8);
    cursor: pointer;
    transition: border-color 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 3rem;
}

.form-select:focus {
    outline: none;
    border-color: #ff1493;
}

.form-select:hover {
    border-color: #cbd5e1;
}

/* Generate Button */
.generate-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #ff1493, #8b00ff);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.5);
}

.generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Generation Status */
.generation-status {
    margin-bottom: 3rem;
}

.status-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 20, 147, 0.3);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(255, 20, 147, 0.2);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.status-icon {
    font-size: 3rem;
    color: #ff1493;
}

.status-text h3 {
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.status-text p {
    color: #cccccc;
}

.status-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    margin-top: 1rem;
    overflow: hidden;
}

.status-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff1493, #8b00ff);
    border-radius: 3px;
    transition: width 0.5s ease;
    animation: progress-pulse 2s infinite;
}

@keyframes progress-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Images Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.image-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 20, 147, 0.3);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(255, 20, 147, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(255, 20, 147, 0.4);
}

.image-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.image-info {
    padding: 1.5rem;
}

.image-info h4 {
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.4;
}

.image-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: #cccccc;
    font-size: 0.9rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.completed {
    background: #d4edda;
    color: #155724;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.processing {
    background: #d1ecf1;
    color: #0c5460;
}

.status-badge.failed {
    background: #f8d7da;
    color: #721c24;
}

.image-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.action-btn.primary {
    background: #ff1493;
    color: white;
}

.action-btn.secondary {
    background: rgba(40, 40, 40, 0.8);
    color: #cccccc;
    border: 1px solid rgba(255, 20, 147, 0.3);
}

.action-btn.danger {
    background: #e74c3c;
    color: white;
}

.action-btn:hover {
    opacity: 0.8;
}

/* Page Headers */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    color: #cccccc;
}

/* Recent Generations */
.recent-generations {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 20, 147, 0.3);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(255, 20, 147, 0.2);
}

.recent-generations h3 {
    margin-bottom: 2rem;
    color: #ffffff;
    font-size: 1.5rem;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 2rem;
}

.load-more-btn {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 20, 147, 0.3);
    margin: 2% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #cccccc;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ff1493;
}

.modal-image-container {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-image-container img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-info h3 {
    margin-bottom: 1rem;
    color: #ffffff;
    font-size: 1.3rem;
}

.modal-meta {
    display: flex;
    justify-content: space-between;
    color: #cccccc;
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Image Slider */
.image-slider {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* Fallback for older browsers */
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.slider-container {
    display: flex;
    transition: transform 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slider-item {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.slider-nav:hover {
    background: rgba(255, 20, 147, 0.8);
    opacity: 1;
}

.slider-prev {
    left: 15px;
}

.slider-next {
    right: 15px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-dot.active {
    background: #ff1493;
}

.image-counter {
    text-align: center;
    margin-top: 10px;
    color: #cccccc;
    font-size: 14px;
}

.image-label {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    z-index: 5;
}

/* Auth Overlay */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.auth-container {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 20, 147, 0.3);
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(255, 20, 147, 0.3);
}

.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 20, 147, 0.3);
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #cccccc;
    transition: color 0.3s ease;
}

.auth-tab.active {
    color: #ff1493;
    border-bottom: 2px solid #ff1493;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #ffffff;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form input {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 20, 147, 0.3);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: rgba(40, 40, 40, 0.8);
    color: #ffffff;
}

.auth-form input:focus {
    outline: none;
    border-color: #ff1493;
}

.auth-form input::placeholder {
    color: #888888;
}

.auth-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, #ff1493, #8b00ff);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.auth-btn:hover {
    transform: translateY(-2px);
}

.auth-error {
    color: #e74c3c;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ff1493;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
}

.toast {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 20, 147, 0.3);
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.3);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    border-left: 4px solid #ff1493;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.success {
    border-left-color: #27ae60;
}

.toast.error {
    border-left-color: #e74c3c;
}

.toast.warning {
    border-left-color: #f39c12;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .form-col {
        width: 100%;
    }
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(20, 20, 20, 0.95);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: block;
    }

    .nav-link {
        padding: 1rem;
        font-size: 1.2rem;
    }

    .dashboard-header h2,
    .page-header h2 {
        font-size: 2rem;
    }

    .image-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .status-card {
        flex-direction: column;
        text-align: center;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 1.5rem;
    }

    .modal-actions {
        justify-content: center;
    }

    .auth-container {
        width: 95%;
        padding: 1.5rem;
    }

    .image-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-user {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Landing Page Responsive */
    .nav-auth {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero {
        padding: 2rem 0;
        min-height: auto;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image-placeholder {
        width: 300px;
        height: 300px;
    }

    .hero-image {
        width: 300px;
        height: 300px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1.1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .features {
        padding: 4rem 0;
    }

    .gallery-section {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }

    .generation-form,
    .recent-generations {
        padding: 1.5rem;
    }

    .dashboard-header h2,
    .page-header h2 {
        font-size: 1.8rem;
    }

    .image-card img {
        height: 200px;
    }

    .image-info {
        padding: 1rem;
    }
    
    /* Responsive prompt header */
    .prompt-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .prompt-header label {
        margin-bottom: 0;
    }
    
    .random-idea-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        align-self: flex-end;
    }
    
    /* Responsive prompt helper */
    .prompt-helper {
        font-size: 0.8rem;
        padding: 0.6rem;
    }

    /* Landing Page Mobile */
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .hero-image-placeholder {
        width: 250px;
        height: 250px;
    }

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

    .hero-image-placeholder i {
        font-size: 3rem;
    }

    .hero-image-placeholder span {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card {
        padding: 1rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .feature-icon i {
        font-size: 1.5rem;
    }

    .feature-card h3 {
        font-size: 1.2rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    .features {
        padding: 3rem 0;
    }

    .gallery-section {
        padding: 3rem 0;
    }
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background: rgba(10, 10, 10, 0.5);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 20, 147, 0.3);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.3);
    border-color: #ff1493;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ff1493, #8b00ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.contact-card p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.contact-form-container {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 20, 147, 0.3);
    padding: 2.5rem;
    border-radius: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 20, 147, 0.3);
    border-radius: 12px;
    padding: 1rem;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #ff1493;
    box-shadow: 0 0 0 3px rgba(255, 20, 147, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #888888;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-btn {
    background: linear-gradient(45deg, #ff1493, #8b00ff);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.5);
}

.contact-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Contact Section Responsive */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-section {
        padding: 3rem 0;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .load-more-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 300px;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; } 