@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 100 700;
    src: url(../font-google/Material_Symbols_Outlined/MaterialSymbolsOutlined-VariableFont_FILL,GRAD,opsz,wght.ttf) format('truetype');
}

:root {
    --bg-color: #f0f4f8;
    --sidebar-bg: #ffffff;
    --sidebar-text: #5f6368;
    --active-blue: #1a73e8;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --green-btn: #00c853;
    --text-main: #333333;
    --text-muted: #70757a;
}

html {
    background-color: #cbd5e0;
    /* Darker background for screens > 2000px */
}

body {
    margin: 0 auto;
    max-width: 2000px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
}



/* login page */

.login-card .raabweb-logo {
    display: block;
    width: 100%;
    max-width: 250px;
    margin: 0 auto 20px auto;
}

.login-card h1 {
    color: #111;
    margin-bottom: 30px;
    font-size: 1.2rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}


.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: 300;
    font-style: normal;
    font-size: 26px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-feature-settings: 'liga';
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* Ensure all form elements use the same font */
input,
textarea,
select,
button {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 5px 0;
    font-weight: bold;
    color: var(--active-blue);
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.sidebar-header img {
    display: block;
    width: 100%;
    max-width: 180px;
    margin: 0 auto;
}

.sidebar-header p {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 400;
    color: #000;
}

.nav-section {
    background: #F5F8FC;
    padding: 15px 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
}

.nav-item {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--sidebar-text);
    transition: all 0.2s;
    font-size: 0.9rem;
}

.nav-item i,
.nav-item .material-symbols-outlined {
    width: 24px;
    /* Material icons usually need slightly more width */
    text-align: center;
    font-size: 1.4rem;
}

.content-header .nav-item i {
    font-size: 1rem;
}

.nav-item:hover {
    background-color: #f8f9fa;
    color: var(--text-main);
}

.nav-item.active {
    /* background-color: #e8f0fe; */
    color: var(--active-blue);
    font-weight: 500;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 30px 40px;
    box-sizing: border-box;
}

.content-header {
    background: var(--card-bg);
    padding: 20px 30px;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.content-header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: normal;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* UI Elements */
.btn-green {
    background-color: var(--green-btn);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 200, 83, 0.3);
    transition: transform 0.1s;
    border: 1px solid transparent;
    cursor: pointer;
    box-sizing: border-box;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-green:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 200, 83, 0.4);
}

.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Table Style */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th {
    text-align: left;
    padding: 15px;
    color: var(--active-blue);
    font-weight: normal;
    border-bottom: 1px solid #e8f0fe;
    font-size: 0.85rem;
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid #f1f3f4;
    font-size: 0.9rem;
    color: var(--text-main);
}

.admin-table tr:hover {
    background-color: #fafbfc;
}

.action-icons {
    display: flex;
    gap: 10px;
    font-size: 1rem;
}

.drag-handle {
    font-size: 1rem;
    color: #ccc !important;
}

.action-icons a {
    color: var(--text-muted);
    transition: color 0.2s;
}

.action-icons a:hover {
    color: var(--active-blue);
}

.action-icons .delete:hover {
    color: #d93025;
}

/* Icon Circles */
.icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.2s;
    border: none;
}

.icon-blue {
    background: #e8f0fe;
    color: #1a73e8 !important;
}

.icon-green {
    background: #e8f5e9;
    color: #4caf50 !important;
}

.icon-red {
    background: #ffebee;
    color: #f44336 !important;
}

.icon-gray {
    background: #f1f3f4;
    color: #70757a !important;
}

.icon-yellow {
    background: #fef7e0;
    color: #fbbc04 !important;
}

.icon-circle:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.icon-circle i {
    font-size: 0.85rem;
}

/* Dropdown/Select */
.custom-select {
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-muted);
    outline: none;
    min-width: 200px;
}

/* Unified Global Input Styling */
input[type="text"],
input[type="url"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="file"],
select {
    padding: 10px 20px !important;
    border-radius: 50px !important;
    border: 1px solid var(--border-color) !important;
    background: white !important;
    color: var(--text-main) !important;
    outline: none !important;
    box-sizing: border-box !important;
    font-size: 0.95rem !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

input[type="text"]:focus,
input[type="url"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="file"]:focus,
select:focus {
    border-color: var(--active-blue) !important;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1) !important;
}

textarea {
    padding: 15px 20px !important;
    border-radius: 20px !important;
    border: 1px solid var(--border-color) !important;
    background: white !important;
    color: var(--text-main) !important;
    outline: none !important;
    box-sizing: border-box !important;
    font-size: 0.95rem !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

textarea:focus {
    border-color: var(--active-blue) !important;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1) !important;
}

/* Checkboxes & Labels */
label.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-main);
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.checkbox-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--active-blue);
    cursor: pointer;
    box-sizing: border-box !important;
    margin: 0;
}

/* Absolute Delete Buttons */
.delete-btn-absolute {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #d93025;
    color: white !important;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
    z-index: 10;
}

.delete-btn-absolute.-small {
    width: 22px;
    height: 22px;
    top: -6px;
    right: -6px;
    font-size: 11px;
}

.delete-btn-absolute:hover {
    transform: scale(1.1);
    background: #c5221f;
}