/* FILE: style.css (Modernized Login Form) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #6a5acd;
    --secondary-color: #f0e6ff;
    --text-dark: #333;
    --text-light: #f8f9fa;
    --bg-light: #ffffff;
    --love-pink: #ff6b81;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    margin: 0;
    color: var(--text-dark);
}

/* --- Shopping Page (Existing Styles) --- */
.shop-header { background-color: var(--bg-light); padding: 1rem 2rem; box-shadow: 0 2px 10px rgba(0,0,0,0.05); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1000; }
.shop-header .logo { font-size: 1.7rem; font-weight: 700; color: var(--primary-color); }
.shop-nav { display: none; }
.shop-nav a { color: #495057; text-decoration: none; margin: 0 1.2rem; font-weight: 500; transition: color 0.2s; }
.shop-nav a:hover { color: var(--primary-color); }
.header-icons { display: flex; align-items: center; gap: 1.5rem; }
.header-icons i { font-size: 1.2rem; color: #495057; cursor: pointer; transition: color 0.2s; }
.header-icons i:hover { color: var(--primary-color); }
.admin-icon { color: #adb5bd !important; }
.mobile-menu-icon { display: block; font-size: 1.5rem; cursor: pointer; }
.hero-section { background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://placehold.co/1600x600/e9ecef/495057?text=Urban+Threads'); background-size: cover; background-position: center; height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--text-light); }
.hero-content h1 { font-size: 3.5rem; }
.hero-content p { font-size: 1.2rem; margin: 1rem 0 2rem 0; }
.hero-button { background-color: var(--bg-light); color: var(--primary-color); padding: 0.8rem 2rem; text-decoration: none; border-radius: 50px; font-weight: 600; transition: all 0.3s; }
.hero-button:hover { background-color: var(--secondary-color); }
.section-title { text-align: center; font-size: 2.2rem; margin: 4rem 0 2rem 0; color: #343a40; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding: 0 2rem 2rem 2rem; max-width: 1400px; margin: auto; }
.product-card { background-color: var(--bg-light); border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.product-card img { width: 100%; height: 300px; object-fit: cover; }
.product-card .info { padding: 1.2rem; }
.product-card h3 { margin: 0 0 0.5rem 0; font-size: 1.1rem; }
.product-card p { margin: 0; color: #666; }
.shop-footer { text-align: center; padding: 2rem; margin-top: 3rem; background-color: #212529; color: var(--text-light); }

/* --- Modernized Login Modal --- */
.login-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.login-modal-backdrop.visible {
    opacity: 1;
    visibility: visible;
}

.login-modal {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.login-modal-backdrop.visible .login-modal {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    color: #adb5bd;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.close-btn:hover { color: #495057; }

.login-modal h2 {
    margin-top: 0;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.login-modal input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-modal input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--secondary-color);
}

.login-modal button {
    width: 100%;
    padding: 0.9rem;
    border: none;
    border-radius: 8px;
    background-color: var(--primary-color);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.login-modal button:hover {
    background-color: #5948b1;
    transform: translateY(-2px);
}

.error-message { background-color: #f8d7da; color: #721c24; padding: 0.75rem; border: 1px solid #f5c6cb; border-radius: 8px; margin-bottom: 1rem; text-align: center; }

/* --- Chat & Responsive Styles (Unchanged) --- */
.chat-container { display: flex; flex-direction: column; height: 100vh; max-width: 800px; margin: auto; background-color: var(--bg-light); box-shadow: 0 0 30px rgba(0,0,0,0.1); }
.chat-header { background: linear-gradient(135deg, #6a5acd, #ff6b81); color: white; padding: 1rem 1.5rem; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.chat-header h1 { margin: 0; font-size: 1.25rem; font-weight: 600; }
.chat-header a { color: white; text-decoration: none; background-color: rgba(255,255,255,0.2); padding: 0.5rem 1rem; border-radius: 20px; transition: background-color 0.2s; }
.chat-header a:hover { background-color: rgba(255,255,255,0.3); }
.chat-messages { flex-grow: 1; padding: 1.5rem; overflow-y: auto; background-color: var(--secondary-color); background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d9c8ff' fill-opacity='0.2'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.message { max-width: 75%; padding: 0.8rem 1.2rem; border-radius: 20px; margin-bottom: 1rem; position: relative; box-shadow: 0 2px 5px rgba(0,0,0,0.08); }
.message.sent { background-color: var(--primary-color); color: white; align-self: flex-end; border-bottom-right-radius: 5px; }
.message.received { background-color: var(--bg-light); color: #333; align-self: flex-start; border-bottom-left-radius: 5px; }
.message .author { font-weight: 600; font-size: 0.8rem; margin-bottom: 0.25rem; }
.message .timestamp { font-size: 0.7rem; color: #999; margin-top: 0.3rem; text-align: right; }
.message.sent .timestamp { color: #e0e0e0; }
.message img, .message video { max-width: 100%; border-radius: 12px; margin-top: 0.5rem; }
.message p { margin: 0; }
.chat-form { padding: 1rem 1.5rem; background-color: var(--bg-light); display: flex; gap: 1rem; align-items: center; border-top: 1px solid #e9ecef; }
.chat-form textarea { flex-grow: 1; padding: 0.8rem 1.2rem; border: 1px solid #ddd; border-radius: 22px; resize: none; height: 44px; font-family: inherit; font-size: 1rem; }
.chat-form button { padding: 0.6rem 1.5rem; border: none; border-radius: 22px; background-color: var(--love-pink); color: white; cursor: pointer; font-size: 1rem; font-weight: 500; transition: background-color 0.2s; }
.chat-form button:hover { background-color: #ff4757; }
.chat-form button[type="button"] { background-color: transparent; color: var(--primary-color); font-size: 1.5rem; padding: 0.5rem; }
.admin-panel { background-color: var(--secondary-color); padding: 1.5rem; border-top: 1px solid #ddd; }
.admin-panel h3 { margin-top: 0; color: var(--primary-color); }
.admin-panel form { margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.admin-panel input { padding: 0.5rem; border: 1px solid #ccc; border-radius: 4px; }
.admin-panel button { padding: 0.5rem 1rem; border: none; border-radius: 4px; cursor: pointer; color: white; }
.admin-panel .delete-btn { background-color: #dc3545; }
.admin-panel .update-btn { background-color: #28a745; }
@media (min-width: 768px) { .shop-nav { display: block; } .mobile-menu-icon { display: none; } }
@media (max-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .shop-header { padding: 1rem; } .hero-content h1 { font-size: 2.5rem; } .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; padding: 0 1rem 1rem 1rem; } .shop-nav.mobile-visible { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background-color: white; box-shadow: 0 4px 6px rgba(0,0,0,0.1); padding: 1rem; gap: 1rem; z-index: 999; } .shop-nav.mobile-visible a { margin: 0; } }
@media (max-width: 480px) { .product-grid { grid-template-columns: 1fr; } .hero-content { padding: 1.5rem; } .hero-content h1 { font-size: 2rem; } }
