@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800&family=Playball&display=swap');

:root {
    --sidiora-primary: #095553;
    --sidiora-primary-hover: #063c3a;
    --sidiora-secondary: #16807d;
    --sidiora-accent: #f7a827;
    --sidiora-accent-hover: #d98e19;
    --sidiora-coral: #dc5c3c;
    --sidiora-dark: #072a29;
    --sidiora-slate: #475569;
    --sidiora-light: #f0fdf4;
    --sidiora-border: #cbd5e1;
    --sidiora-shadow: 0 10px 25px -5px rgba(9, 85, 83, 0.15), 0 8px 10px -6px rgba(9, 85, 83, 0.1);
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: #f4f7f6;
    color: var(--sidiora-dark);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Header & Navbar */
.sidiora-header {
    background: linear-gradient(135deg, #095553 0%, #16807d 100%);
    color: white;
    padding: 12px 24px;
    box-shadow: 0 4px 15px rgba(9, 85, 83, 0.25);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidiora-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
}

.sidiora-brand img {
    height: 42px;
    border-radius: 6px;
    background: white;
    padding: 3px 8px;
}

.sidiora-brand-title {
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 0.5px;
}

.sidiora-brand-sub {
    font-family: 'Playball', cursive;
    font-size: 14px;
    color: #a8ffed;
    margin-left: 4px;
}

/* Nav Links */
.sidiora-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sidiora-nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.sidiora-nav a:hover, .sidiora-nav a.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Language Selector */
.lang-selector {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 3px;
    gap: 3px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.lang-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn.active, .lang-btn:hover {
    background-color: white;
    color: var(--sidiora-primary);
}

/* Main Container */
.sidiora-main {
    max-width: 1280px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Cards */
.sidiora-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--sidiora-shadow);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}

.sidiora-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--sidiora-primary);
    margin-top: 0;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Buttons */
.btn-sidiora {
    background: linear-gradient(135deg, #095553 0%, #16807d 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-sidiora:hover {
    background: linear-gradient(135deg, #063c3a 0%, #0d5e5c 100%);
    box-shadow: 0 4px 12px rgba(9, 85, 83, 0.35);
    color: white;
}

.btn-sidiora-accent {
    background: linear-gradient(135deg, #f7a827 0%, #e8a704 100%);
    color: #072a29;
    border: none;
    padding: 10px 20px;
    font-weight: 800;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-sidiora-accent:hover {
    background: #d98e19;
    box-shadow: 0 4px 12px rgba(247, 168, 39, 0.35);
}

.btn-secondary {
    background: #e2e8f0;
    color: var(--sidiora-dark);
    border: none;
    padding: 10px 20px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
}

/* Login Page Styling */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #041d1c 0%, #095553 50%, #16807d 100%);
    position: relative;
    overflow: hidden;
}

.login-wrapper::before {
    content: '';
    position: absolute;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(247,168,39,0.2) 0%, rgba(0,0,0,0) 70%);
    top: -150px;
    right: -150px;
    border-radius: 50%;
}

.login-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    width: 100%;
    max-width: 440px;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 25px 50px -12px rgba(7, 42, 41, 0.4);
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-header img {
    height: 65px;
    margin-bottom: 12px;
}

.login-header h2 {
    margin: 5px 0 0 0;
    color: var(--sidiora-primary);
    font-weight: 800;
    font-size: 24px;
}

.login-header p {
    color: var(--sidiora-slate);
    margin: 5px 0 0 0;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
    font-size: 14px;
}

.form-control {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 15px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--sidiora-primary);
    box-shadow: 0 0 0 3px rgba(9, 85, 83, 0.2);
}

/* Tables */
.sidiora-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.sidiora-table th {
    background-color: #f0fdf4;
    color: #064e3b;
    font-weight: 700;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid #cbd5e1;
}

.sidiora-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}

.sidiora-table tr:hover {
    background-color: #f8fafc;
}

/* Badges */
.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    display: inline-block;
}

.badge-super_admin { background: #fee2e2; color: #991b1b; }
.badge-admin { background: #dcfce7; color: #166534; }
.badge-agent { background: #e0f2fe; color: #0369a1; }
.badge-user { background: #f1f5f9; color: #475569; }

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(7, 42, 41, 0.65);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 25px 15px;
    box-sizing: border-box;
}

.modal-card {
    background: white;
    width: 95%;
    max-width: 550px;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - 50px);
    overflow-y: auto;
    box-sizing: border-box;
    margin: auto 0;
    position: relative;
}

body.modal-open {
    overflow: hidden !important;
}
