/*
Theme Name: Jacque Costura
Author: AI Engineer
Description: Tema estilo App para Ateliê de Costura com Dashboards dedicados.
Version: 1.0
*/

:root {
    --color-gold: #F2E6A8;
    --color-gold-dark: #C5B358;
    --color-olive: #6B7038;
    --color-olive-dark: #4a4e27;
    --color-cream: #FFFDD0;
    --color-dark: #1a1a1a;
    --color-gray: #f4f4f4;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-gray);
    color: var(--color-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
}

/* Utility Classes */
.hidden {
    display: none !important;
}
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}
.btn-primary {
    background-color: var(--color-olive);
    color: white;
}
.btn-primary:hover {
    background-color: var(--color-olive-dark);
}
.btn-gold {
    background-color: var(--color-gold);
    color: var(--color-dark);
}

/* Login Screen */
#login-screen {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('https://source.unsplash.com/1600x900/?sewing,fashion');
    background-size: cover;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 2px solid var(--color-gold);
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--color-dark);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 0.9;
}
.logo-text span {
    color: var(--color-olive);
}

.login-form input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.biometric-area {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.bio-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: 0.3s;
}
.bio-btn:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
}

/* Dashboard Layout */
#app-container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--color-olive);
    color: white;
    display: flex;
    flex-direction: column;
    padding: 20px;
    transition: 0.3s;
}

.sidebar-header {
    margin-bottom: 40px;
    text-align: center;
}
.sidebar-header h2 {
    color: var(--color-gold);
}

.nav-links li {
    list-style: none;
    margin-bottom: 15px;
}

.nav-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    transition: 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    background-color: rgba(255,255,255,0.1);
    color: var(--color-gold);
}

.user-profile-mini {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
}

.avatar {
    width: 40px;
    height: 40px;
    background-color: var(--color-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--color-dark);
}

/* Main Content */
.main-content {
    flex: 1;
    overflow-y: auto;
    background-color: #f9f9f9;
}

.top-bar {
    background: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.notifications {
    position: relative;
    cursor: pointer;
}
.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 50%;
}

.content-area {
    padding: 30px;
}

/* Cards & Widgets */
.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid var(--color-olive);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stat-card h3 {
    font-size: 2rem;
    color: var(--color-dark);
}

/* Order Progress */
.progress-track {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    position: relative;
}
.progress-track::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ddd;
    z-index: 0;
}
.step {
    background: white;
    z-index: 1;
    padding: 5px 15px;
    border: 2px solid #ddd;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #999;
}
.step.active {
    border-color: var(--color-olive);
    background: var(--color-olive);
    color: white;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    overflow: hidden;
    z-index: 1000;
}
.chat-header {
    background: var(--color-olive);
    color: white;
    padding: 10px;
    cursor: pointer;
}
.chat-body {
    height: 300px;
    padding: 10px;
    overflow-y: auto;
    background: #f4f4f4;
}
.chat-input {
    display: flex;
    border-top: 1px solid #ddd;
}
.chat-input input {
    flex: 1;
    padding: 10px;
    border: none;
}

/* Birthday Modal */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    border: 4px solid var(--color-gold);
    animation: popIn 0.5s ease;
}
@keyframes popIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    #app-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        padding: 10px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .nav-links {
        display: none; /* Mobile menu logic needed */
    }
    .sidebar-header { margin: 0; }
}