* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Comic Sans MS', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #fce7f3 0%, #fdf2f8 50%, #f8fafc 100%);
    background-attachment: fixed;
    color: #831843;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #fbb6ce 0%, #f9a8d4 50%, #ec4899 100%);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(236, 72, 153, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

header h1 {
    color: white;
    font-size: 2.8em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.2);
    font-weight: 700;
    letter-spacing: 1px;
}

header h1::before {
    content: "💖 ";
}

header h1::after {
    content: " 💖";
}

header p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2em;
    font-weight: 500;
}

/* Navigation and Tabs */
.tab-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 25px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #fce7f3 0%, #fdf2f8 100%);
  padding: 15px;
  border-radius: 15px;
  border: 2px solid rgba(255, 182, 193, 0.3);
  position: relative;
}

.tab-nav::before {
  content: "🎮";
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 1.5em;
  opacity: 0.7;
}

.tab-btn {
  background: linear-gradient(135deg, #fdf2f8 0%, #f8fafc 100%);
  border: 2px solid rgba(255, 182, 193, 0.3);
  color: #831843;
  padding: 12px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1em;
  transition: all 0.3s ease;
  position: relative;
}

.tab-btn:hover {
  background: linear-gradient(135deg, #fce7f3 0%, #fbb6ce 100%);
  border-color: #fbb6ce;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(251, 182, 206, 0.4);
}

.tab-btn.active {
  background: linear-gradient(135deg, #fbb6ce 0%, #f472b6 100%);
  color: white;
  border-color: #f472b6;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(244, 114, 182, 0.4);
}

.tab-btn.active::after {
  content: "✨";
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 0.8em;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  padding: 2px 6px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Controls */
.controls, .catalog-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(252, 231, 243, 0.6) 100%);
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(251, 182, 206, 0.4);
}

.filter-container {
    display: flex;
    gap: 10px;
}

.search-container {
    display: flex;
    gap: 10px;
    flex: 1;
    min-width: 200px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #5a67d8;
    box-shadow: 0 0 0 3px rgba(90, 103, 216, 0.1);
}

.sort-select {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-select:focus {
    outline: none;
    border-color: #5a67d8;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: 2px solid #f9a8d4;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "✨";
    position: absolute;
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.btn:hover::before {
    left: 10px;
    opacity: 1;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    color: white;
    border-color: #be185d;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #be185d 0%, #9d174d 100%);
    box-shadow: 0 8px 25px rgba(190, 24, 93, 0.4);
    padding-left: 35px;
}

.btn-secondary {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    color: #be185d;
    border-color: #f9a8d4;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    border-color: #ec4899;
    padding-left: 35px;
}

.btn-danger {
    background: #e53e3e;
    color: white;
}

.btn-danger:hover {
    background: #c53030;
    transform: translateY(-1px);
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(252, 231, 243, 0.7) 100%);
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.15);
    border: 2px solid rgba(251, 182, 206, 0.3);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: "💕";
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5em;
    opacity: 0.3;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(236, 72, 153, 0.25);
}

.stat-card h3 {
    font-size: 2.2em;
    color: #be185d;
    margin-bottom: 8px;
    font-weight: 700;
}

.stat-card p {
    color: #831843;
    font-weight: 600;
    font-size: 1.1em;
}

/* Inventory Grid */
.inventory-grid, .catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.item-card, .catalog-item-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(252, 231, 243, 0.8) 100%);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.15);
    border: 2px solid rgba(251, 182, 206, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.item-card::before, .catalog-item-card::before {
    content: "✨";
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.2em;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.item-card:hover::before, .catalog-item-card:hover::before {
    opacity: 1;
}

.item-card:hover, .catalog-item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(236, 72, 153, 0.25);
    border-color: #f9a8d4;
}

.item-card img, .catalog-item-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 15px;
    border: 2px solid rgba(251, 182, 206, 0.2);
    transition: all 0.3s ease;
}

.item-card:hover img, .catalog-item-card:hover img {
    border-color: #f9a8d4;
    transform: scale(1.02);
}

.item-card h3, .catalog-item-card h3 {
    color: #be185d;
    margin-bottom: 10px;
    font-size: 1.3em;
    font-weight: 600;
}

.item-card p, .catalog-item-card p {
    color: #831843;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Empty State */
.empty-state, .catalog-empty-state {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(252, 231, 243, 0.7) 100%);
    border-radius: 25px;
    border: 3px dashed #f9a8d4;
    margin: 40px 0;
    position: relative;
}

.empty-state::before, .catalog-empty-state::before {
    content: "🌸✨🌸";
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5em;
    opacity: 0.6;
}

.empty-state h2, .catalog-empty-state h2 {
    color: #be185d;
    font-size: 2.2em;
    margin-bottom: 15px;
    font-weight: 600;
}

.empty-state p, .catalog-empty-state p {
    color: #831843;
    font-size: 1.2em;
    margin-bottom: 25px;
    font-weight: 500;
}

/* Catalog specific */
.catalog-item-card {
    position: relative;
}

.catalog-item-card .add-to-inventory {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(90, 103, 216, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    opacity: 0;
    transition: all 0.3s ease;
}

.catalog-item-card:hover .add-to-inventory {
    opacity: 1;
}

.catalog-item-card .add-to-inventory:hover {
    background: rgba(90, 103, 216, 1);
    transform: scale(1.1);
}

.rarity-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rarity-common {
    background: #68d391;
    color: #22543d;
}

.rarity-uncommon {
    background: #63b3ed;
    color: #2a69ac;
}

.rarity-rare {
    background: #9f7aea;
    color: #553c9a;
}

.rarity-epic {
    background: #f687b3;
    color: #97266d;
}

.rarity-legendary {
    background: #fbb6ce;
    color: #97266d;
    background: linear-gradient(45deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.estimated-price {
    color: #38a169;
    font-weight: 600;
    font-size: 0.9em;
}

/* Import/Export Modals */
.import-options {
    padding: 20px;
}

.import-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #5a67d8;
}

.import-section h3 {
    margin-bottom: 10px;
    color: #2d3748;
}

.import-section p {
    color: #666;
    margin-bottom: 15px;
}

.file-input {
    margin-bottom: 15px;
    padding: 10px;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    background: white;
    width: 100%;
}

.file-input:hover {
    border-color: #5a67d8;
}

#pasteDataInput {
    width: 100%;
    margin-bottom: 15px;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

#sampleFormat {
    background: #2d3748;
    color: #e2e8f0;
    padding: 15px;
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 15px;
    overflow-x: auto;
}

/* Data Sources Modal */
.data-sources-content {
    padding: 20px;
}

.source-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.source-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.source-card h3 {
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.source-card p {
    color: #4a5568;
    margin-bottom: 10px;
    line-height: 1.5;
}

.source-card strong {
    color: #2d3748;
}

.update-status {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.update-status h3 {
    margin-bottom: 15px;
}

.update-status p {
    margin-bottom: 10px;
    opacity: 0.9;
}

.update-status span {
    font-weight: 600;
}

.update-status .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.update-status .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Price Update Features */
.price-update-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(56, 161, 105, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    opacity: 0;
    transition: all 0.3s ease;
}

.catalog-item-card:hover .price-update-btn {
    opacity: 1;
}

.price-update-btn:hover {
    background: rgba(56, 161, 105, 1);
    transform: scale(1.1);
}

/* Status indicators */
.status-indicator {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-updated {
    background: #68d391;
    color: #22543d;
}

.status-outdated {
    background: #feb2b2;
    color: #742a2a;
}

.status-community {
    background: #90cdf4;
    color: #2a69ac;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5em;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close:hover {
    transform: scale(1.1);
}

/* Form */
form {
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #5a67d8;
    box-shadow: 0 0 0 3px rgba(90, 103, 216, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.image-preview {
    margin-top: 15px;
    min-height: 100px;
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    font-style: italic;
    transition: all 0.3s ease;
}

.image-preview.has-image {
    border-style: solid;
    border-color: #5a67d8;
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

/* Item Details */
.item-details {
    padding: 30px;
}

.detail-row {
    display: flex;
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #f7fafc;
}

.detail-label {
    font-weight: 600;
    color: #4a5568;
    width: 120px;
    flex-shrink: 0;
}

.detail-value {
    color: #2d3748;
    flex: 1;
}

.detail-image {
    text-align: center;
    margin-bottom: 20px;
}

.detail-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .controls, .catalog-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-container {
        min-width: auto;
    }
    
    .main-nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-btn {
        min-width: auto;
    }
    
    .stats, .catalog-stats {
        grid-template-columns: 1fr;
    }
    
    .inventory-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 2% auto;
        width: 95%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .filter-container {
        flex-direction: column;
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #5a67d8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 

/* Authentication Styles */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #fce7f3 0%, #fdf2f8 30%, #fbb6ce 70%, #ec4899 100%);
  background-attachment: fixed;
  padding: 20px;
  position: relative;
}

.auth-container::before {
  content: "💕💖💕";
  position: absolute;
  top: 10%;
  left: 10%;
  font-size: 2em;
  opacity: 0.1;
  animation: float 3s ease-in-out infinite;
}

.auth-container::after {
  content: "✨🌸✨";
  position: absolute;
  bottom: 10%;
  right: 10%;
  font-size: 2em;
  opacity: 0.1;
  animation: float 3s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Authentication Message Styles */
.auth-message {
  margin-top: 20px;
  padding: 15px 20px;
  border-radius: 15px;
  font-weight: 500;
  text-align: center;
  display: none;
  position: relative;
}

.auth-message::before {
  content: "💌";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
}

.auth-message.success {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #166534;
  border: 2px solid #86efac;
}

.auth-message.error {
  background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
  color: #991b1b;
  border: 2px solid #fca5a5;
}

.auth-message.info {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #1e40af;
  border: 2px solid #93c5fd;
}

.auth-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(252, 231, 243, 0.9) 100%);
  border-radius: 25px;
  padding: 35px; /* Reduced padding */
  box-shadow: 0 25px 60px rgba(236, 72, 153, 0.2);
  max-width: 480px; /* Slightly smaller width */
  width: 100%;
  text-align: center;
  border: 3px solid rgba(251, 182, 206, 0.4);
  backdrop-filter: blur(10px);
  position: relative;
}

.auth-card::before {
  content: "🌸";
  position: absolute;
  top: 20px;
  left: 25px;
  font-size: 1.5em;
  opacity: 0.6;
}

.auth-card::after {
  content: "🌸";
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 1.5em;
  opacity: 0.6;
}

.auth-card h1 {
  margin: 0 0 12px 0; /* Reduced margin */
  color: #be185d;
  font-size: 2.4em; /* Slightly smaller */
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.auth-subtitle {
  color: #831843;
  margin: 0 0 25px 0; /* Reduced margin */
  font-size: 1.1em; /* Slightly smaller */
  font-weight: 500;
}

.auth-tabs {
  display: flex;
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
  border-radius: 18px;
  padding: 5px; /* Reduced padding */
  margin-bottom: 25px; /* Reduced margin */
  border: 2px solid rgba(251, 182, 206, 0.3);
}

.auth-tab {
  flex: 1;
  padding: 12px 20px; /* Reduced padding */
  border: none;
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  color: #be185d;
  font-size: 15px; /* Slightly smaller */
}

.auth-tab.active {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
  transform: translateY(-1px);
}

.auth-form-container {
  position: relative;
  min-height: 420px; /* Increased height for better spacing */
  margin-bottom: 20px; /* Add bottom margin */
}

.auth-form {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
  pointer-events: none;
  padding-bottom: 20px; /* Add bottom padding */
}

.auth-form.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

.auth-form h2 {
  margin: 0 0 25px 0;
  color: #be185d;
  font-size: 1.6em; /* Slightly smaller to save space */
  font-weight: 600;
}

.form-group {
  text-align: left;
  margin-bottom: 20px; /* Consistent spacing */
}

.form-group label {
  display: block;
  margin-bottom: 6px; /* Reduced margin */
  font-weight: 600;
  color: #831843;
  font-size: 14px; /* Slightly smaller */
}

.form-group input {
  width: 100%;
  padding: 12px 16px; /* Reduced padding for less height */
  border: 2px solid #f9a8d4;
  border-radius: 12px;
  font-size: 15px; /* Slightly smaller */
  transition: all 0.3s ease;
  box-sizing: border-box;
  background: linear-gradient(135deg, #fefcff 0%, #fdf2f8 100%);
  color: #831843;
}

.form-group input:focus {
  outline: none;
  border-color: #ec4899;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.2);
  background: white;
}

.form-group small {
  display: block;
  color: #be185d;
  font-size: 0.85em; /* Smaller text */
  margin-top: 4px; /* Reduced margin */
  font-weight: 500;
  line-height: 1.2;
}

.auth-btn {
  width: 100%;
  padding: 14px 20px; /* Reduced padding */
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  color: white;
  border: none;
  border-radius: 12px; /* Slightly smaller radius */
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px; /* Reduced margin */
  position: relative;
  overflow: hidden;
}

.auth-btn::before {
  content: "💖";
  position: absolute;
  top: 50%;
  left: -30px;
  transform: translateY(-50%);
  transition: left 0.3s ease;
}

.auth-btn:hover::before {
  left: 20px;
}

.auth-btn:hover {
  background: linear-gradient(135deg, #be185d 0%, #9d174d 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(190, 24, 93, 0.3);
  padding-left: 55px;
}

.auth-features {
  margin-top: 25px; /* Reduced margin */
  padding-top: 20px; /* Reduced padding */
  border-top: 2px solid rgba(251, 182, 206, 0.3);
  text-align: left;
}

.auth-features h3 {
  margin: 0 0 15px 0; /* Reduced margin */
  color: #be185d;
  text-align: center;
  font-size: 1.2em; /* Slightly smaller */
  font-weight: 600;
}

.auth-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.auth-features li {
  padding: 6px 0; /* Reduced padding */
  color: #831843;
  font-size: 0.9em; /* Smaller text */
  font-weight: 500;
  position: relative;
  padding-left: 25px;
  line-height: 1.3;
}

.auth-features li::before {
  content: "🌸";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* User Header Styles */
.user-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #ec4899 0%, #be185d 50%, #9d174d 100%);
  color: white;
  padding: 20px 30px;
  border-radius: 20px;
  margin-bottom: 25px;
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.user-header::before {
  content: "💕";
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 1.2em;
  opacity: 0.7;
}

.user-header::after {
  content: "💕";
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.2em;
  opacity: 0.7;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1em;
  font-weight: 600;
}

.admin-badge {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.85em;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.admin-controls {
  display: flex;
  gap: 10px;
}

.admin-btn {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.admin-btn:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

.user-avatar {
  background: rgba(255, 255, 255, 0.25);
  padding: 10px 15px;
  border-radius: 50%;
  font-size: 1.3em;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-name {
  font-weight: 600;
  font-size: 1.1em;
}

.user-since {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9em;
}

.logout-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 12px 20px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Loading Screen */
.loading-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #fce7f3 0%, #fdf2f8 50%, #f8fafc 100%);
  color: #be185d;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f9a8d4;
  border-top: 4px solid #ec4899;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-screen p {
  font-size: 1.3em;
  font-weight: 600;
  color: #831843;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
  
  header h1 {
    font-size: 2.2em;
  }
  
  .main-nav {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
  }
  
  .nav-btn {
    min-width: auto;
    padding: 12px 20px;
  }
  
  .controls, .catalog-controls {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }
  
  .auth-container {
    padding: 15px;
  }
  
  .auth-card {
    padding: 25px 20px; /* More compact on mobile */
    margin: 5px;
    max-width: 100%;
  }
  
  .auth-card h1 {
    font-size: 2em; /* Smaller on mobile */
  }
  
  .auth-subtitle {
    font-size: 1em;
  }
  
  .auth-form-container {
    min-height: 380px; /* Smaller on mobile */
  }
  
  .form-group input {
    padding: 12px 14px;
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  .auth-btn {
    padding: 12px 18px;
    font-size: 15px;
  }
  
  .auth-features {
    margin-top: 20px;
  }
  
  .auth-features li {
    font-size: 0.85em;
    padding: 5px 0;
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 20px 15px;
  }
  
  .auth-form-container {
    min-height: 360px;
  }
  
  .form-group {
    margin-bottom: 18px;
  }
} 

/* Inputs */
.search-input, input[type="text"], input[type="password"], input[type="number"], select, textarea {
    padding: 12px 18px;
    border: 2px solid #f9a8d4;
    border-radius: 12px;
    font-size: 15px;
    background: linear-gradient(135deg, #fefcff 0%, #fdf2f8 100%);
    color: #831843;
    transition: all 0.3s ease;
    font-family: inherit;
}

.search-input:focus, input[type="text"]:focus, input[type="password"]:focus, input[type="number"]:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.2);
    background: white;
    transform: translateY(-1px);
}

.search-input::placeholder, input::placeholder, textarea::placeholder {
    color: #be185d;
    opacity: 0.7;
} 

/* ========== FORUMS STYLING ========== */
.forums-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.forums-header {
  text-align: center;
  margin-bottom: 30px;
  background: linear-gradient(135deg, #fce7f3 0%, #fdf2f8 100%);
  padding: 30px;
  border-radius: 20px;
  border: 2px solid rgba(255, 182, 193, 0.3);
  position: relative;
}

.forums-header::before {
  content: "💬";
  position: absolute;
  top: 15px;
  left: 20px;
  font-size: 2em;
  opacity: 0.7;
}

.forum-categories {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.category-btn {
  background: linear-gradient(135deg, #fdf2f8 0%, #f8fafc 100%);
  border: 2px solid rgba(255, 182, 193, 0.3);
  color: #831843;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.category-btn:hover, .category-btn.active {
  background: linear-gradient(135deg, #fce7f3 0%, #fbb6ce 100%);
  border-color: #fbb6ce;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(251, 182, 206, 0.4);
}

.forum-post {
  background: linear-gradient(135deg, #fefefe 0%, #fdf2f8 100%);
  border: 2px solid rgba(255, 182, 193, 0.2);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
}

.forum-post::before {
  content: "💭";
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5em;
  opacity: 0.6;
}

.post-header {
  margin-bottom: 15px;
}

.post-title {
  color: #831843;
  margin: 0 0 10px 0;
  font-size: 1.3em;
}

.post-meta {
  display: flex;
  gap: 15px;
  font-size: 0.9em;
  color: #be185d;
  flex-wrap: wrap;
}

.post-author {
  font-weight: 600;
}

.post-category {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8em;
}

.post-content {
  color: #831843;
  line-height: 1.6;
  margin-bottom: 15px;
  white-space: pre-wrap;
}

.post-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 182, 193, 0.3);
}

.reply-btn {
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.reply-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(56, 189, 248, 0.4);
}

.post-replies {
  border-top: 1px solid rgba(255, 182, 193, 0.3);
  padding-top: 15px;
}

.reply {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-left: 3px solid #fbb6ce;
  padding: 10px 15px;
  margin-bottom: 10px;
  border-radius: 0 10px 10px 0;
}

.reply-meta {
  display: flex;
  gap: 10px;
  font-size: 0.8em;
  color: #be185d;
  margin-bottom: 5px;
}

.reply-content {
  color: #831843;
  line-height: 1.5;
  white-space: pre-wrap;
}

.more-replies {
  text-align: center;
  color: #be185d;
  font-style: italic;
  padding: 10px;
}

/* ========== FAQ STYLING ========== */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.faq-header {
  text-align: center;
  margin-bottom: 30px;
  background: linear-gradient(135deg, #fce7f3 0%, #fdf2f8 100%);
  padding: 30px;
  border-radius: 20px;
  border: 2px solid rgba(255, 182, 193, 0.3);
  position: relative;
}

.faq-header::before {
  content: "❓";
  position: absolute;
  top: 15px;
  left: 20px;
  font-size: 2em;
  opacity: 0.7;
}

.faq-search {
  margin: 20px 0;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.faq-search input {
  width: 100%;
  padding: 12px 20px;
  border: 2px solid rgba(255, 182, 193, 0.3);
  border-radius: 25px;
  font-size: 1em;
  background: white;
  color: #831843;
}

.faq-search input:focus {
  border-color: #fbb6ce;
  outline: none;
  box-shadow: 0 0 15px rgba(251, 182, 206, 0.3);
}

.faq-categories {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.faq-entry {
  background: linear-gradient(135deg, #fefefe 0%, #fdf2f8 100%);
  border: 2px solid rgba(255, 182, 193, 0.2);
  border-radius: 15px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.faq-entry:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #fce7f3 0%, #fdf2f8 100%);
  position: relative;
}

.faq-question::before {
  content: "💡";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
  opacity: 0.7;
}

.faq-question h3 {
  color: #831843;
  margin: 0;
  padding-left: 40px;
  font-size: 1.1em;
}

.expand-icon {
  color: #be185d;
  font-size: 1.2em;
  transition: transform 0.3s ease;
}

.faq-entry.expanded .expand-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-entry.expanded .faq-answer {
  padding: 20px;
  max-height: 500px;
}

.faq-answer p {
  color: #831843;
  line-height: 1.6;
  margin: 0 0 15px 0;
  white-space: pre-wrap;
}

.faq-meta {
  display: flex;
  gap: 15px;
  font-size: 0.9em;
  color: #be185d;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 182, 193, 0.3);
}

.faq-category {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8em;
}

.faq-author {
  font-style: italic;
}

/* ========== ADMIN PANEL STYLING ========== */
.admin-panel-content {
  padding: 20px;
}

.admin-features {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.admin-feature {
  background: linear-gradient(135deg, #fce7f3 0%, #fdf2f8 100%);
  border: 2px solid rgba(255, 182, 193, 0.3);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  position: relative;
}

.admin-feature::before {
  content: "👑";
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.2em;
  opacity: 0.7;
}

.admin-feature h4 {
  color: #831843;
  margin: 0 0 10px 0;
  font-size: 1.2em;
}

.admin-feature p {
  color: #be185d;
  margin: 0 0 15px 0;
  line-height: 1.5;
}

.catalog-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 15px;
}

.user-management-content {
  padding: 20px;
}

.user-management-content .form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.user-management-content input {
  padding: 12px 20px;
  border: 2px solid rgba(255, 182, 193, 0.3);
  border-radius: 25px;
  font-size: 1em;
  background: white;
  color: #831843;
  max-width: 300px;
  width: 100%;
}

.user-management-content input:focus {
  border-color: #fbb6ce;
  outline: none;
  box-shadow: 0 0 15px rgba(251, 182, 206, 0.3);
} 