/* /home/citransilvania/app.citransilvania.ro/style.css */

/* --- 1. GLOBAL SETTINGS & FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #2C3E50; /* Deep Slate Blue */
    --accent-color: #D4AF37;  /* Metallic Gold */
    --bg-color: #F8F9FA;      /* Background Grey */
    --text-color: #333;
    --white: #ffffff;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 5px 15px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    color: var(--text-color);
}

/* --- 2. MAIN CONTAINER --- */
/* Used for Login, Sign Up, Home, Programari */
.container {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    width: 100%;
    max-width: 600px; /* Default width, adjusts on mobile */
    margin: 20px auto;
    text-align: center;
    position: relative;
}

h2 {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 10px;
}

.welcome-text {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 30px;
}

/* --- 3. FORMS & INPUTS --- */
input {
    width: 100%;
    padding: 15px;
    margin: 8px 0;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-sizing: border-box;
    font-size: 14px;
    font-family: inherit;
    transition: 0.3s;
    background: #fafafa;
}

input:focus {
    border-color: var(--primary-color);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(44, 62, 80, 0.05);
}

/* --- 4. BUTTONS --- */
.btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
    font-family: inherit;
}

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

.btn-primary:hover {
    background-color: #1a252f;
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    margin-top: 10px;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* --- 5. DASHBOARD (HOME PAGE) --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 Columns */
    gap: 15px;
    margin-top: 20px;
}

.menu-item {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, border-color 0.2s;
    border: 1px solid #f0f0f0;
}

.menu-item:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.logout-link {
    display: inline-block;
    margin-top: 30px;
    color: #95a5a6;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.logout-link:hover {
    color: var(--primary-color);
}

/* --- 6. ALERTS --- */
.alert {
    padding: 12px;
    background-color: #fff5f5;
    color: #e74c3c;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    border: 1px solid #ffebe9;
}

/* --- APPOINTMENTS (PROGRAMARI) - NEW DESIGN --- */

/* Wrapper for the list */
.appointments-container {
    width: 100%;
    max-width: 500px; /* Limits width to look like the mobile screenshot */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px; /* Large gap between cards as shown in image */
}

/* Base Card Style */
.appt-card {
    border-radius: 25px; /* Very round corners */
    padding: 20px 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    font-family: 'Poppins', sans-serif;
    color: #000;
    position: relative;
}

/* --- Color Variants --- */

/* 1. Future (Green) */
.card-green {
    background-color: #bdffbd; /* Vibrant Light Green */
}

/* 2. Canceled (Salmon/Pink) */
.card-red {
    background-color: #f2bba9; /* Salmon Pink */
}

/* 3. Finalized/Past (White) */
.card-white {
    background-color: #ffffff;
    border: 1px solid #ddd; /* Subtle border for white card */
}

/* --- Typography --- */

.card-header {
    text-align: center;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 2px;
}

.card-status {
    text-align: center;
    color: #00008B; /* Dark Blue Text */
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.card-body {
    text-align: left;
    font-size: 16px;
    line-height: 1.4;
    color: #000;
}

.info-line {
    margin-bottom: 5px;
}

/* --- Buttons Area --- */
.card-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.btn-card {
    padding: 10px 25px;
    border: none;
    border-radius: 15px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-confirm-style {
    background-color: #a8d0cf; /* Greyish Teal */
    color: #000;
}

.btn-cancel-style {
    background-color: #e5988c; /* Darker Salmon */
    color: #000;
}

/* Modal Styles (Same as before) */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-box {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 300px;
    width: 90%;
}