:root {
    /* --- BRAND COLORS --- */
    --brand-red: #A82424;
    --brand-black: #202124;
    --bg-body: #f4f7fe;       
    --bg-surface: #ffffff;    
    --text-main: #2b3674;     
    --text-light: #a3aed0;    
    
    /* --- DIMENSIONS & SHADOWS --- */
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 20px 50px rgba(112, 144, 176, 0.08); 
    --font: 'Manrope', sans-serif; 
}

body {
    font-family: var(--font); background-color: var(--bg-body); color: var(--text-main);
    margin: 0; height: 100vh; display: flex; flex-direction: column;
}

/* --- MAIN LAYOUT --- */
.app-layout { display: flex; height: 100vh; width: 100%; overflow: hidden; }

/* --- SIDEBAR --- */
.sidebar { width: 280px; background: var(--bg-surface); display: flex; flex-direction: column; padding: 30px; transition: 0.3s; }
.brand-wrapper { margin-bottom: 50px; padding-left: 10px; text-align: center; }
.brand-logo { max-width: 150px; height: auto; }
.nav-list { flex: 1; display: flex; flex-direction: column; gap: 15px; }
.nav-title { font-size: 12px; font-weight: 700; color: var(--text-light); margin-left: 15px; margin-top: 20px; margin-bottom: 5px; letter-spacing: 1px; }
.nav-link { display: flex; align-items: center; padding: 14px 20px; border-radius: var(--radius-sm); color: var(--text-light); text-decoration: none; font-weight: 600; font-size: 15px; transition: all 0.2s ease; }
.nav-link .material-icons-round { margin-right: 15px; font-size: 24px; }
.nav-link.active { background: var(--brand-red); color: white; box-shadow: 0 10px 20px rgba(168, 36, 36, 0.2); }
.nav-link:hover:not(.active) { background: #fff5f5; color: var(--brand-red); }
.sidebar-footer { margin-top: auto; }

/* --- MAIN PANE --- */
.main-pane { flex: 1; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.header-bar { height: 90px; display: flex; justify-content: space-between; align-items: center; padding: 0 40px; background: transparent; }
.page-name { margin: 0; font-size: 32px; font-weight: 700; color: var(--text-main); }
.user-profile { display: flex; align-items: center; gap: 12px; background: var(--bg-surface); padding: 8px 12px 8px 20px; border-radius: 40px; box-shadow: var(--shadow); }
.u-name { display: block; font-weight: 700; font-size: 14px; color: var(--text-main); }
.u-role { display: block; font-size: 12px; color: var(--text-light); }
.avatar-circle { width: 45px; height: 45px; background: var(--brand-black); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; }
.scroll-canvas { flex: 1; overflow-y: auto; padding: 20px 40px 40px 40px; }

/* --- DASHBOARD WIDGETS (NEW REFERENCE STYLE) --- */
.welcome-banner {
    background: linear-gradient(135deg, #FF9966 0%, #FF5E62 100%); /* Orange/Red Gradient */
    border-radius: var(--radius);
    padding: 40px;
    color: white;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(255, 94, 98, 0.3);
    position: relative;
    overflow: hidden;
}
.welcome-text h1 { margin: 0 0 10px 0; font-size: 32px; font-weight: 700; }
.welcome-text p { margin: 0 0 25px 0; opacity: 0.9; font-size: 16px; }
.btn-banner {
    background: white; color: #FF5E62; padding: 12px 25px; border-radius: 30px;
    text-decoration: none; font-weight: 700; font-size: 14px; display: inline-block;
    transition: 0.2s;
}
.btn-banner:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

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

.dash-card {
    background: var(--bg-surface);
    border-radius: var(--radius);
    padding: 25px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
    border: 1px solid white;
}
.dash-card:hover { transform: translateY(-5px); border-color: #f0f0f0; }

.dash-icon-wrap {
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-right: 20px; flex-shrink: 0;
}
.dash-icon-wrap .material-icons-round { font-size: 28px; }

/* Icon Colors */
.icon-blue { background: #e0e7ff; color: #4338ca; }
.icon-red { background: #fee2e2; color: #ef4444; }
.icon-yellow { background: #fef3c7; color: #d97706; }
.icon-purple { background: #f3e8ff; color: #7e22ce; }

.dash-content h3 { margin: 0; font-size: 14px; color: var(--text-light); font-weight: 600; }
.dash-value { margin: 5px 0; font-size: 28px; font-weight: 800; color: var(--text-main); }
.dash-content p { margin: 0; font-size: 12px; color: var(--text-light); }


/* --- CONTENT CARDS --- */
.section-container, .panel-card { background: var(--bg-surface); border-radius: var(--radius); padding: 35px; box-shadow: var(--shadow); margin-bottom: 30px; }
.input-clean, .input-bordered { border: none; background: #f4f7fe; border-radius: 12px; padding: 15px 20px; width: 100%; box-sizing: border-box; font-family: var(--font); color: var(--text-main); font-size: 15px; margin-bottom: 10px; }
.input-clean:focus, .input-bordered:focus { outline: 2px solid var(--brand-red); background: white; }
textarea.input-clean { resize: vertical; }
.btn-primary { background: var(--brand-red); color: white; border: none; padding: 14px 30px; border-radius: 12px; font-weight: 600; font-size: 15px; cursor: pointer; transition: 0.2s; }
.btn-primary:hover { background: #8a1c1c; box-shadow: 0 5px 15px rgba(168, 36, 36, 0.3); }
.btn-add, .btn-add-block { background: white; border: 2px dashed #e0e5f2; color: var(--brand-black); padding: 15px; width: 100%; border-radius: 15px; cursor: pointer; font-weight: 700; text-align: center; margin-top: 15px; transition: 0.2s; }
.btn-add:hover, .btn-add-block:hover { border-color: var(--brand-red); color: var(--brand-red); background: #fff5f5; }

/* --- LOGIN PAGE --- */
.login-wrapper { display: flex; justify-content: center; align-items: center; height: 100vh; background: var(--bg-body); }
.login-card { width: 420px; padding: 50px 40px; text-align: center; background: white; border-radius: var(--radius); box-shadow: var(--shadow); border: none; }
.brand-logo-large { max-width: 200px; margin-bottom: 20px; }
.signin-title { margin: 0; font-size: 24px; font-weight: 700; color: var(--text-main); }
.signin-subtitle { margin: 10px 0 30px 0; color: var(--text-light); font-size: 14px; }
.input-group { text-align: left; margin-bottom: 20px; }
.input-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-main); margin-bottom: 8px; }
.login-input { width: 100%; padding: 14px; border: 1px solid #e0e5f2; border-radius: 12px; font-size: 15px; box-sizing: border-box; background: #fcfdfe; transition: 0.2s; }
.login-input:focus { outline: none; border-color: var(--brand-red); background: white; }
.btn-login { width: 100%; padding: 14px; background: var(--brand-red); color: white; border: none; border-radius: 12px; font-weight: 700; font-size: 16px; cursor: pointer; transition: 0.2s; margin-top: 10px; }
.btn-login:hover { background: #8a1c1c; box-shadow: 0 5px 15px rgba(168, 36, 36, 0.3); }
.loader-area { margin-bottom: 20px; }
.loader-logo { width: 50px; opacity: 0.8; }
.error-message { margin-top: 20px; color: #e53e3e; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 5px; }

/* --- CARD STYLES --- */
.team-grid, .service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.team-card, .service-card { background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; border: 1px solid white; display: flex; flex-direction: column; }
.team-image-upload { width: 100%; aspect-ratio: 3/4; background: #f4f7fe; position: relative; cursor: pointer; }
.service-img-upload { width: 100%; aspect-ratio: 4/3; background: #202124; position: relative; cursor: pointer; }
.team-img-preview, .service-img-preview, .client-circle-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-image-upload input, .service-img-upload input, .client-img-wrap input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 50; }
.team-info { padding: 20px; text-align: center; }
.team-name { font-weight: 700; font-size: 18px; width: 100%; text-align: center; border: none; background: transparent; color: var(--text-main); }
.team-role { font-size: 14px; color: var(--brand-red); font-weight: 600; width: 100%; text-align: center; border: none; background: transparent; text-transform: uppercase; }
.service-body { padding: 25px; flex: 1; }
.service-title { font-weight: 700; font-size: 20px; margin-bottom: 10px; color: var(--text-main); border: none; background: transparent; width: 100%; }
.service-desc { font-size: 15px; color: var(--text-light); line-height: 1.6; border: none; resize: none; background: transparent; width: 100%; }

/* --- TESTIMONIALS --- */
.client-card-horizontal { display: flex; gap: 30px; align-items: flex-start; background: #fff; padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 30px; position: relative; }
.client-left { width: 120px; flex-shrink: 0; display: flex; justify-content: center; }
.client-img-wrap { width: 100px; height: 100px; border-radius: 50%; overflow: hidden; position: relative; border: 4px solid #f4f7fe; cursor: pointer; }
.client-right { flex: 1; }
.quote-text-body { font-size: 16px; color: var(--text-main); line-height: 1.6; border: none; background: transparent; width: 100%; font-style: italic; }
.client-signature { margin-top: 15px; padding-top: 15px; border-top: 1px solid #f4f7fe; }
.client-name-red { color: var(--brand-red); font-weight: 800; font-size: 16px; border: none; background: transparent; display: block; width: 100%; }
.client-role-grey { color: var(--text-light); font-size: 13px; text-transform: uppercase; font-weight: 600; border: none; background: transparent; display: block; width: 100%; }
.big-quote-mark { font-size: 60px; color: #e0e5f2; font-family: serif; line-height: 0; display: block; margin-bottom: 15px; }

/* --- CONTACT GRID --- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.info-card { background: white; padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); }
.card-header { display: flex; align-items: center; margin-bottom: 20px; color: var(--brand-red); }
.card-header h3 { margin: 0; font-size: 18px; font-weight: 700; }
.card-header .icon { margin-right: 12px; font-size: 24px; }
.remove-corner { position: absolute; top: 15px; right: 15px; background: white; width: 32px; height: 32px; border-radius: 50%; border: none; color: var(--brand-red); cursor: pointer; box-shadow: 0 5px 15px rgba(0,0,0,0.1); z-index: 60; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.remove-btn { background: none; border: none; color: var(--text-light); cursor: pointer; }
.remove-btn:hover { color: var(--brand-red); }
.upload-overlay, .upload-overlay-circle { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,0.6); color: white; border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 55; }
.upload-overlay-circle { bottom: 0; right: 0; width: 100%; border-radius: 0; }

@media (max-width: 900px) {
    .app-layout { flex-direction: column; overflow: auto; }
    .sidebar { width: 100%; height: auto; padding: 15px 20px; flex-direction: row; align-items: center; overflow-x: auto; border-bottom: 1px solid #e0e5f2; }
    .brand-wrapper { margin: 0 20px 0 0; }
    .nav-list { flex-direction: row; }
    .nav-title, .sidebar-footer { display: none; }
    .client-card-horizontal { flex-direction: column; align-items: center; text-align: center; }
    .client-left { margin-bottom: 20px; }
}