:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #3b82f6;
    --background-start: #ffffff;
    --background-end: #ffffff;
    --text-main: #1e293b;
    --text-muted: #475569;
    --card-bg: #ffffff;
    --card-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --input-bg: #ffffff;
    --input-border: #e2e8f0;
    --success: #22c55e;
    --error: #ef4444;
    --radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #ffffff;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-align: center;
}

.login-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 1px solid var(--input-border);
    background-color: var(--input-bg);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background-color: white;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px;
}

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

.news-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.news-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.news-headline {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.footer {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: auto;
}

.card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

@media (max-width: 640px) {
    .login-card {
        padding: 30px 20px;
    }
}

/* Dashboard Styles */
.dashboard-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.dashboard-header {
    background: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.dashboard-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-name {
    font-weight: 600;
    color: var(--text-main);
}

.dashboard-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid var(--input-border);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    height: calc(100vh - 65px);
}

.main-content {
    flex: 1;
    background: #ffffff;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.content-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

/* Menu Styles */
.menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu li {
    margin: 5px 15px;
}

.menu li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text-muted);
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
}

.menu li a:hover {
    background-color: #f1f5f9;
    color: var(--primary-color);
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .dashboard-body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--input-border);
        padding: 10px;
        overflow-x: auto;
        flex-shrink: 0;
    }

    .menu {
        display: flex;
        gap: 10px;
    }


    .menu li {
        margin: 0;
        white-space: nowrap;
    }
}

/* Internal Pages Styles */

/* Header & Logo */
.internal-header {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    border: 1px solid #f1f5f9;
    text-align: center;
}

.internal-header img {
    max-width: 100%;
    height: auto;
    max-height: 100px;
    /* Adjust as needed */
    object-fit: contain;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 20px 0;
    color: var(--text-main);
}

/* Modern Tabs */
.tabs-container {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--card-shadow);
}

.tabs-header {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 30px;
}

.tab-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-bottom: none;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px 6px 0 0;
    transition: all 0.2s;
    margin-right: 4px;
    margin-bottom: -2px;
}

.tab-btn:hover {
    background-color: #ffffff;
    color: var(--primary-color);
}

.tab-btn.active {
    background-color: #ffffff;
    color: var(--primary-color);
    font-weight: 700;
    border-top: 3px solid var(--primary-color);
    border-bottom: 2px solid #ffffff;
    padding-top: 10px;
    /* Adjust for the top border */
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern Tables */
.table-responsive {
    overflow-x: auto;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.95rem;
}

.modern-table th,
.modern-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--input-border);
}

.modern-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: var(--text-muted);
}

.modern-table tr:last-child td {
    border-bottom: none;
}

.modern-table tr:hover {
    background-color: #f1f5f9;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    display: inline-block;
    width: auto;
    margin-top: 0;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 6px;
}

.modern-table td:last-child {
    white-space: nowrap;
    width: 1px;
}

.empty-state {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-style: italic;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}