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

:root {
    --primary: #ff6b81;
    --primary-light: #ff8fa3;
    --primary-dark: #e85066;
    --secondary: #2f3542;
    --bg-color: #fcf9f9;
    --card-bg: rgba(255, 255, 255, 0.8);
    --text-main: #2f3542;
    --text-muted: #747d8c;
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-soft: 0 8px 32px 0 rgba(255, 107, 129, 0.1);
    --shadow-hover: 0 12px 40px 0 rgba(255, 107, 129, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(at 0% 0%, hsla(347,100%,88%,1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(28,100%,88%,1) 0px, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Navbar */
header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--secondary);
}

/* Hero Section */
.hero {
    padding: 6rem 5%;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary);
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Catalog Section */
.catalog-container {
    padding: 2rem 5% 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: var(--secondary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 1rem;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1.2rem;
    background-color: #f1f2f6;
}

.product-info {
    padding: 0 0.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.btn-order {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    text-align: center;
    width: 100%;
    margin-top: auto;
}

.product-card:hover .btn-order {
    background: var(--primary-dark);
}

/* Order Page */
.order-container {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
}

.order-summary {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-soft);
    height: fit-content;
}

.order-summary img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    height: 300px;
    object-fit: cover;
}

.order-summary h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.order-summary .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.order-form-container {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-soft);
}

.order-form-container h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--secondary);
}

.form-group input, 
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus, 
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 129, 0.2);
}

.row {
    display: flex;
    gap: 1rem;
}
.row .form-group {
    flex: 1;
}

.btn-submit {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1.2rem;
    width: 100%;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
    margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .order-container {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .row {
        flex-direction: column;
        gap: 0;
    }
}

/* Admin Dashboard Styles */
.admin-container {
    padding: 2rem 5%;
    max-width: 1000px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-header h2 {
    color: var(--secondary);
}

.search-bar {
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: var(--card-bg);
    width: 100%;
    max-width: 300px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.search-bar:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 129, 0.2);
}

.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    background: var(--card-bg);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    transition: all 0.3s;
    border: 1px solid var(--glass-border);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
}

.order-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-order-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}

.admin-order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.customer-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
}

.order-date {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge.pending {
    background: #ffeaa7;
    color: #d63031;
}

.badge.completed {
    background: #55efc4;
    color: #00b894;
}

.admin-order-body p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.admin-order-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-small {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-status {
    background: #74b9ff;
    color: white;
}
.btn-status:hover {
    background: #0984e3;
}

.btn-edit {
    background: #ffeaa7;
    color: #fdcb6e;
    color: #2d3436;
}
.btn-edit:hover {
    background: #fdcb6e;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-color);
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-hover);
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

/* Drag and Drop Zone */
.drop-zone {
    width: 100%;
    min-height: 150px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px dashed var(--glass-border);
    border-radius: 12px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--primary);
    background: rgba(255, 107, 129, 0.05);
}

.drop-zone-text {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
}
