:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --text-color: #333333;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --background-image: none;
    --background-overlay: rgba(102, 126, 234, 0.85);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    min-height: 100vh;
    position: relative;
    color: var(--text-color);
}

/* Background Layer */
.background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Background Image with Fade */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--background-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    animation: fadeInBackground 1.5s ease-out;
}

/* Background Overlay */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-overlay);
    z-index: -1;
    pointer-events: none;
}

@keyframes fadeInBackground {
    from { opacity: 0; transform: scale(1.1); }
    to { opacity: 1; transform: scale(1); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

.login-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    transition: transform 0.3s;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Offer Banner */
.offer-banner {
    background: linear-gradient(90deg, var(--accent-color) 0%, #f5576c 100%);
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 1.2rem;
    animation: slideRight 15s linear infinite;
}

@keyframes slideRight {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Products Grid */
.main-content {
    padding: 50px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-box {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.product-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-box:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.price {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.details {
    color: #666;
    line-height: 1.6;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: all 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Instagram Float Button */
.instagram-float {
    position: fixed !important;
    bottom: 260px !important;
    right: 30px !important;
    top: auto !important;
    left: auto !important;
    background: linear-gradient(45deg, #f9ce34 0%, #ee2a7b 50%, #6228d7 100%) !important;
    color: white !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 28px !important;
    box-shadow: 0 5px 20px rgba(225, 48, 108, 0.4) !important;
    z-index: 9999 !important;
    transition: all 0.3s !important;
    text-decoration: none !important;
}

.instagram-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(225, 48, 108, 0.5);
}

/* AI Chat Button - ChatGPT Style (Black & White) */
.ai-chat-btn {
    position: fixed;
    bottom: 180px;
    right: 30px;
    background: #000000;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.ai-chat-btn:hover {
    transform: scale(1.1);
    background: #1a1a1a;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Footer */
.main-footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 0;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 50px;
    align-items: center;
}

.footer-content p {
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-content i {
    color: var(--primary-color);
}

/* 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);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: left;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #000;
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

input, textarea, select {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
}

button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Chat Modal - ChatGPT Style */
.chat-modal {
    max-height: 85vh;
    max-width: 700px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f7f8 100%);
    border-radius: 20px;
    overflow: hidden;
}

.chat-modal h2 {
    display: none;
}

.chat-header {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: -30px -30px 0 -30px;
}

.chat-header-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.chat-header-info h3 {
    font-size: 1.3rem;
    margin-bottom: 3px;
}

.chat-header-info span {
    font-size: 0.85rem;
    opacity: 0.9;
}

.chat-header-status {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #ffffff;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chat-messages {
    height: 420px;
    overflow-y: auto;
    padding: 25px;
    margin: 20px 0;
    background: #f7f7f8;
    border-radius: 15px;
    border: none;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.chat-message {
    margin-bottom: 20px;
    padding: 15px 18px;
    border-radius: 18px;
    animation: fadeInUp 0.3s;
    max-width: 85%;
    line-height: 1.6;
}

@keyframes fadeInUp {
    from {
        transform: translateY(10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.user-message {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.ai-message {
    background: white;
    margin-right: auto;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border-bottom-left-radius: 5px;
    position: relative;
}

.ai-message-icon {
    position: absolute;
    left: -35px;
    top: 10px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.ai-message-content {
    padding-left: 5px;
}

.chat-input {
    display: flex;
    gap: 12px;
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.05);
    margin: 0 -10px -10px -10px;
}

.chat-input input {
    flex: 1;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 15px;
    transition: all 0.3s;
}

.chat-input input:focus {
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.chat-input button {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    border-radius: 12px;
    padding: 14px 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-input button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 15px 18px;
    background: white;
    border-radius: 18px;
    width: fit-content;
    margin-bottom: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #000000;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-8px); opacity: 1; }
}

/* Admin Dashboard */
.dashboard-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin: 30px auto;
    max-width: 1200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 10px 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid #e0e0e0;
}

.data-table th {
    background: #f8f8f8;
    font-weight: bold;
    color: #333;
}

.data-table tr:hover {
    background: #f5f5f5;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.btn-edit, .btn-delete, .btn-whatsapp {
    padding: 5px 15px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.2s;
}

.btn-edit {
    background: #4CAF50;
    color: white;
}

.btn-delete {
    background: #f44336;
    color: white;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
}

.btn-edit:hover, .btn-delete:hover, .btn-whatsapp:hover {
    transform: scale(1.05);
}

/* Birthday Alert */
.birthday-alert {
    background: linear-gradient(135deg, var(--accent-color) 0%, #f5576c 100%);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: pulse 2s infinite;
}

/* Appointment Alert */
.appointment-alert {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.appointment-alert i {
    font-size: 20px;
    margin-right: 10px;
}

.appointment-alert a {
    color: white;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s;
}

.appointment-alert a:hover {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Enhanced AI Styles */
.ai-welcome {
    text-align: center;
    padding: 20px;
}

.ai-welcome h3 {
    color: #000000;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.ai-capabilities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.capability-card {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: white;
    padding: 15px 10px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.capability-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.capability-card i {
    font-size: 22px;
    display: block;
    margin-bottom: 8px;
}

.capability-card span {
    font-size: 0.85rem;
    font-weight: 500;
}

.routine-guide, .ingredient-guide, .acne-guide, .seasonal-guide, .antiaging-guide {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.routine-steps {
    margin: 20px 0;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.step-number {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-content strong {
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.pro-tip {
    background: #fff3cd;
    padding: 10px;
    border-radius: 5px;
    border-left: 4px solid #ffc107;
    margin-top: 15px;
}

.ingredient-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.ingredient-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.ingredient-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.ingredient-card h5 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.ingredient-card p {
    font-size: 14px;
    margin: 5px 0;
}

.warning {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
}

.quick-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.ai-option {
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.ai-option:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    transform: translateY(-2px);
}

.season-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.season-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.season-card h5 {
    margin-bottom: 10px;
    font-size: 18px;
}

.do-dont {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.do, .dont {
    padding: 15px;
    border-radius: 8px;
}

.do {
    background: #d4edda;
}

.dont {
    background: #f8d7da;
}

/* Image Upload Styles */
.upload-area {
    border: 2px dashed var(--primary-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s;
    margin: 20px 0;
}

.upload-area:hover {
    background: #e9ecef;
    border-color: var(--secondary-color);
}

.upload-area i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.upload-preview {
    max-width: 200px;
    max-height: 200px;
    margin: 20px auto;
    display: none;
}

.upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .chat-messages {
        height: 300px;
    }
    
    /* Float buttons - same size for mobile */
    .whatsapp-float,
    a.instagram-float,
    .ai-chat-btn {
        width: 55px !important;
        height: 55px !important;
        font-size: 24px !important;
        right: 15px !important;
        position: fixed !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        top: auto !important;
        left: auto !important;
    }
    
    .whatsapp-float {
        bottom: 15px !important;
        background: #25d366 !important;
    }
    
    a.instagram-float {
        bottom: 150px !important;
        background: linear-gradient(45deg, #f9ce34 0%, #ee2a7b 50%, #6228d7 100%) !important;
        color: white !important;
        box-shadow: 0 5px 20px rgba(225, 48, 108, 0.4) !important;
    }
    
    .ai-chat-btn {
        bottom: 80px !important;
        background: #000000 !important;
    }
    
    .ai-chat-btn img {
        width: 24px !important;
        height: 24px !important;
    }
}
