:root {
    --gold: #D4AF37;
    --gold-dark: #B8860B;
    --bg: #F8F9FA;
    --white: #FFFFFF;
    --text: #2D3436;
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
}

* { box-sizing: border-box; transition: all 0.3s ease; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0; padding: 20px;
}

.app-container { max-width: 1100px; margin: 0 auto; }

header { text-align: center; margin-bottom: 40px; }
.logo { font-family: 'Playfair Display', serif; font-size: 2.2rem; letter-spacing: 2px; }
.gold { color: var(--gold); }
.subtitle { opacity: 0.6; font-size: 0.9rem; margin-top: 5px; }

.action-bar { display: flex; justify-content: center; margin-bottom: 30px; }

.btn-main {
    background: var(--text); color: white; border: none; padding: 15px 40px;
    border-radius: 50px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.btn-main:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(0,0,0,0.15); background: #000; }

/* Card Style */
.card {
    background: var(--white); border-radius: 20px; padding: 30px; margin-bottom: 30px;
    box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.03);
}
.card-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #F0F0F0; padding-bottom: 15px; margin-bottom: 20px; }
.badge { background: var(--gold); color: white; padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; }

/* Table Style */
.table-responsive { overflow-x: auto; max-height: 300px; }
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th { background: #F8F9FA; text-align: left; padding: 12px; color: var(--gold-dark); border-bottom: 2px solid #EEE; }
td { padding: 10px; border-bottom: 1px solid #F5F5F5; color: #636e72; }

/* Mapping Grid */
.mapping-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 15px; }
.mapping-item { 
    background: #FBFCFD; border: 1px solid #EDF1F7; padding: 15px; border-radius: 12px; 
    display: flex; align-items: center; gap: 15px;
}
.mapping-item.active { border-color: var(--gold); background: rgba(212, 175, 55, 0.05); }

/* Modal */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); backdrop-filter: blur(5px); }
.modal-content { background: white; margin: 10% auto; padding: 30px; width: 90%; max-width: 500px; border-radius: 25px; position: relative; }
.close-modal { position: absolute; right: 25px; top: 20px; font-size: 28px; cursor: pointer; color: #AAA; }

.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }
.form-group input { width: 100%; padding: 12px; border: 2px solid #EEE; border-radius: 10px; margin-bottom: 20px; outline: none; }
.form-group input:focus { border-color: var(--gold); }

.upload-wrapper { border: 2px dashed #DDD; border-radius: 15px; padding: 40px; text-align: center; cursor: pointer; }
.upload-wrapper:hover { border-color: var(--gold); background: #FFFEF9; }
.upload-icon { font-size: 40px; display: block; margin-bottom: 10px; }

.btn-generate {
    width: 100%; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: white;
    border: none; padding: 18px; border-radius: 12px; font-size: 1.1rem; font-weight: bold; cursor: pointer; margin-top: 20px;
}

.overlay { position: fixed; inset: 0; background: rgba(255,255,255,0.9); display: flex; align-items: center; justify-content: center; z-index: 2000; }
.progress-card { width: 300px; text-align: center; }
.progress-bar-bg { background: #EEE; height: 10px; border-radius: 10px; overflow: hidden; margin: 20px 0; }
.progress-bar-fill { background: var(--gold); height: 100%; width: 0%; }

.hidden { display: none; }