/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.head-title {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 80px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
  
.user-actions {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}
  
.profile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 40px;
    transition: background 0.3s;
}
  
.profile-link:hover {
    background: #f0f4ff;
}

.profile-name {
    color: #2d3748;
    font-weight: 500;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0px;
    background: white;
    min-width: 180px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    overflow: hidden;
}

.user-actions:hover .dropdown {
    display: block;
    animation: fadeIn 0.2s ease;
}
  
@keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
}

.dropdown-link {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #2d3748;
    transition: background 0.3s;
}
  
.dropdown-link:hover {
    background: #f7fafc;
}
  
.logout {
    color: #e53e3e;
}
  
.logout:hover {
    background: #fff5f5;
}

.head-title h1 {
    margin: 0 0 8px;
    font-size: 2.4rem;
    font-weight: 800;
    color: #1f2937;
}

.head-title p {
    margin: 0;
    color: #526071;
    font-size: 1rem;
}

.market-summary {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.summary-chip {
    min-width: 140px;
    padding: 14px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ecfeff 0%, #dbeafe 100%);
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.12);
}

.summary-label {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.market-toolbar {
    margin: 0 10px 28px;
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}

.filter-field {
    grid-column: span 3;
}

.filter-field-wide {
    grid-column: span 4;
}

.autocomplete {
    position: relative;
}

.filter-field label {
    display: block;
    margin-bottom: 8px;
    color: #dbeafe;
    font-size: 0.88rem;
    font-weight: 600;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    font-size: 0.95rem;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}

.autocomplete-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    padding: 8px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(10px);
    max-height: 280px;
    overflow-y: auto;
}

.autocomplete-option {
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #0f172a;
    text-align: left;
    padding: 11px 12px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}

.autocomplete-option:hover,
.autocomplete-option.is-active {
    background: #e0f2fe;
    color: #0c4a6e;
}

.quick-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-filters-label {
    color: #cbd5e1;
    font-size: 0.88rem;
    font-weight: 600;
}

.quick-filter-pill {
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.quick-filter-pill:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.quick-filter-pill.is-active {
    border-color: rgba(125, 211, 252, 0.95);
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0c4a6e;
    box-shadow: 0 10px 24px rgba(14, 116, 144, 0.28);
}

.quick-filter-pill.is-active:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.filter-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.toolbar-btn {
    margin-bottom: 0;
}

.btn-secondary {
    display: inline-block;
    padding: 10px 22px;
    margin-bottom: 0;
    border-radius: 25px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.analytics-shell {
    min-height: 100vh;
    padding: 36px 28px 48px;
    background:
        radial-gradient(circle at top left, rgba(125, 211, 252, 0.28), transparent 30%),
        radial-gradient(circle at top right, rgba(45, 212, 191, 0.22), transparent 22%),
        linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
}

.analytics-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 32px;
    margin-bottom: 24px;
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.94);
    color: white;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.2);
}

.analytics-kicker {
    margin: 0 0 10px;
    color: #67e8f9;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.analytics-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.analytics-copy {
    max-width: 760px;
    margin: 0;
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.7;
}

.analytics-hero-actions {
    display: flex;
    align-items: center;
}

.analytics-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.analytics-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-1px);
}

.analytics-summary-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.analytics-stat-card {
    padding: 22px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
}

.analytics-stat-card span {
    display: inline-block;
    margin-bottom: 12px;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.analytics-stat-card strong {
    display: block;
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.analytics-stat-card p {
    margin: 0;
    color: #475569;
    font-size: 0.94rem;
    line-height: 1.6;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.analytics-panel {
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.analytics-panel-wide {
    grid-column: 1 / -1;
}

.analytics-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.analytics-panel-head h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 800;
}

.analytics-panel-head p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.analytics-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.analytics-button-group {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: #e2e8f0;
}

.analytics-chip {
    border: 0;
    padding: 10px 16px;
    border-radius: 999px;
    background: transparent;
    color: #334155;
    font-size: 0.92rem;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.analytics-chip:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
}

.analytics-chip.is-active {
    background: linear-gradient(135deg, #0f766e 0%, #0ea5e9 100%);
    color: white;
    box-shadow: 0 12px 24px rgba(14, 116, 144, 0.24);
}

.analytics-chart-frame {
    position: relative;
    height: 320px;
}

.analytics-chart-frame-tall {
    height: 380px;
}

@media (max-width: 1200px) {
    .analytics-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .analytics-shell {
        padding: 24px 16px 36px;
    }

    .analytics-hero {
        padding: 24px;
        flex-direction: column;
    }

    .analytics-summary-grid,
    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .analytics-panel-wide {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    .analytics-panel,
    .analytics-stat-card {
        padding: 20px;
    }

    .analytics-panel-head {
        flex-direction: column;
    }

    .analytics-toolbar,
    .analytics-button-group {
        width: 100%;
    }

    .analytics-button-group {
        justify-content: space-between;
    }

    .analytics-chip {
        flex: 1;
        padding-left: 10px;
        padding-right: 10px;
    }

    .analytics-chart-frame,
    .analytics-chart-frame-tall {
        height: 280px;
    }
}

.item-detail-container {
    padding: 40px 40px;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}
  
.item-card-detail {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.item-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
  
.image-section {
    background: #f8f9fa;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.main-image {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 16px;
    transition: transform 0.3s;
}

.main-image:hover {
    transform: scale(1.02);
}

.no-image {
    text-align: center;
    padding: 60px;
}
  
.no-image-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.info-section {
    padding: 40px 40px 40px 0;
}

.item-category {
    display: inline-block;
    padding: 6px 14px;
    background: black;
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.item-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 16px;
    line-height: 1.2;
}
  
.price-section {
    background: linear-gradient(135deg, #c2edf6 0%, #4feff7 100%);
    padding: 20px;
    border-radius: 16px;
    margin: 20px 0;
    color: black;
}
  
.price-label {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 5px;
}
  
.price-value {
    font-size: 2.0rem;
    font-weight: 800;
}

.description-section {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 16px;
}
  
.description-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 12px;
}
  
.description-text {
    color: #2d3748;
    line-height: 1.6;
    font-size: 1rem;
}

.seller-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s;
}

.seller-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 600;
}
  
.seller-info p {
    margin: 0;
    color: #718096;
    font-size: 0.85rem;
}

.meta-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}
  
.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
}
  
.meta-icon {
    font-size: 1.2rem;
}
  
.meta-label {
    font-size: 0.8rem;
    color: #718096;
}
  
.meta-value {
    font-weight: 600;
    color: #2d3748;
}

.item-btn-container {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.item-btn {
    flex: 1;
    max-width: 220px;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
    margin-left: 10px;
    margin-right: 10px;
}

.item-card {
    width: 100%;
    min-width: 0;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card-head {
    display: flex;
    align-items: center;
    height: 50px;
    background: #d0e0e2;
    padding: 0 15px;
}

.item-card:hover {
    transform: scale(1.05);
}

.card-head-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.favorite-toggle-form {
    margin: 0;
}

.favorite-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #f5a623;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

.favorite-toggle:hover {
    transform: scale(1.12);
    color: #d68f00;
}

.favorite-toggle-link {
    color: #8a94a6;
}

.card-badge {
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.card-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 15px;
    display: -webkit-box;
    overflow: hidden;
}

.card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 10px;
}

.item-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: capitalize;
}

.status-available {
  background-color: #e6fcf5; 
  color: #0ca678;            
}

.status-reserved {
  background-color: #fff4e6; 
  color: #fd7e14;            
}

.status-sold {
  background-color: #f1f3f5; 
  color: #868e96;            
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #999;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.seller-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-link {
    font-size: 0.85rem;
    margin-right: 10px;
    text-align: right;
}

.form-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 20px;
    min-height: 100vh;
}

.form-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.form-header {
    background: linear-gradient(135deg, #69c9e8 0%, #288deb 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.form-body {
    padding: 40px 80px;
}
  
.form-group {
    margin-bottom: 28px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.form-btn-container {
    display: flex;
    justify-content: space-between;
}

.link-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
}
  
.link:hover {
    text-decoration: underline;
}
  
.btn-new {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 25px;
    margin-bottom: 40px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0;
}

.btn-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

.market-action-row {
    display: flex;
    justify-content: center;
}

@media (max-width: 1100px) {
    .filter-field,
    .filter-field-wide {
        grid-column: span 6;
    }

    .items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .head-title,
    .market-toolbar {
        margin-left: 10px;
        margin-right: 10px;
    }

    .item-layout,
    .form-row,
    .filter-grid {
        grid-template-columns: 1fr;
    }

    .filter-field,
    .filter-field-wide {
        grid-column: span 1;
    }

    .items-grid {
        grid-template-columns: 1fr;
    }

    .info-section {
        padding: 24px;
    }

    .image-section {
        min-height: 320px;
        padding: 24px;
    }

    .meta-info {
        grid-template-columns: 1fr;
    }
}

.btn-chip {
  display: inline-block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background-color: #4CAF50; /* Green background */
  text-decoration: none;
  border-radius: 50px; /* Makes it pill-shaped */
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Hover Effect */
.btn-chip:hover {
  background-color: #45a049; /* Darker green on hover */
  transform: translateY(-2px); /* Slight lift effect */
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  color: #ffffff;
}

/* Active/Click Effect */
.btn-chip:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}