/* --- CSS Variables --- */
/* --- index.html --- */
:root {
    --color-primary: #0077b6;
    --color-primary-light: #ade8f4;
    --color-dark: #212529;
    --color-light: #f8f9fa;
    --color-gray: #6c757d;
    --color-white: #ffffff;
    --font-family: 'Inter', sans-serif;
    --transition-speed: 0.3s;
}

/* --- Basic Reset & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-light);
    color: var(--color-dark);
    line-height: 1.7;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--color-dark);
}

/* --- Navigation Bar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 0;
    z-index: 1000;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-dark);
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.btn-nav-login {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 700;
    transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.btn-nav-login:hover {
    background-color: #005f8a;
    color: var(--color-white);
    transform: translateY(-2px);
}


/* --- Hero Section --- */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 3rem;
    width: 100%;
}

.hero-text {
    order: 1;
}

.hero-image-container {
    order: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-width: 380px;
    height: 420px;
    border-radius: 12px;
    object-fit: cover;
    object-position: center 20%;
}

.hero-intro {
    color: var(--color-gray);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 50ch;
    color: var(--color-gray);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--color-dark);
    box-shadow: inset 0 0 0 2px var(--color-gray);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- Content Sections --- */
.content-section {
    padding: 100px 0;
}

.section-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: center;
    gap: 3rem;
}

.layout-reversed .section-container {
    direction: rtl;
}

.layout-reversed .section-text-side {
    direction: ltr;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50%;
    height: 4px;
    background-color: var(--color-primary-light);
}

.section-image-side img {
    width: 100%;
    border-radius: 12px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.skills-grid span {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 700;
}

.text-link {
    font-weight: 700;
    display: inline-block;
    margin-top: 1rem;
}

/* --- Footer --- */
.footer {
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: 80px 0 30px;
    text-align: center;
}

.footer-container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
}

.footer a {
    color: var(--color-light);
}
.footer-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.footer-email {
    font-size: 1.2rem;
    margin-top: 1rem;
    font-weight: 700;
}
.footer-socials {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}
.footer-copyright {
    color: var(--color-gray);
    font-size: 0.9rem;
    margin-top: 3rem;
    margin-bottom: 0;
}

/* --- Animations --- */
.hero-text, .hero-image-container, .section-text-side, .section-image-side {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-image-container, .layout-reversed .section-text-side, .section-image-side:not(.layout-reversed *) {
    animation-delay: 0.2s;
}

.section-text-side.visible, .section-image-side.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .nav-menu { display: none; }
    
    .hero-content, .section-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-image-container {
        order: 1;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .layout-reversed .section-container {
        direction: ltr;
    }
    
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}






/* --- login page --- */

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--color-light);
}

.login-box {
    background-color: var(--color-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.login-title {
    font-size: 2rem;
    color: var(--color-dark);
}

.login-subtitle {
    color: var(--color-gray);
    margin: 0.5rem 0 2rem 0;
}

.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.input-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
}

.error-text {
    color: #d90429;
    font-weight: 700;
    height: 1em;
    margin-bottom: 1rem;
    text-align: left;
}

.btn-login {
    width: 100%;
    padding: 0.9rem;
    border: none;
    border-radius: 8px;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-login:hover {
    background-color: #005f8a;
}

.login-footer {
    margin-top: 1.5rem;
}

/* --- dashboard --- */

.dashboard-main {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 0 60px;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 4rem;
}

.dashboard-header h1 { font-size: 2.5rem; }
.dashboard-header p { font-size: 1.1rem; color: var(--color-gray); }

.dashboard-card {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

/* --- Main Menu --- */
.dashboard-menu { list-style: none; padding: 0; margin: 0; }
.dashboard-menu li { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 0; border-bottom: 1px solid #e9ecef; }
.dashboard-menu li:last-child { border-bottom: none; }
.menu-item-text { display: flex; flex-direction: column; }
.menu-item-title { font-size: 1.1rem; font-weight: 700; color: var(--color-dark); }
.menu-item-desc { font-size: 0.9rem; color: var(--color-gray); }
.btn-back { display: inline-block; padding: 0.6rem 1.2rem; margin-bottom: 2rem; border-radius: 8px; font-weight: 700; text-decoration: none; transition: all 0.3s ease; border: 1px solid var(--color-border); background-color: var(--color-white); color: var(--color-gray); cursor: pointer; }
.btn-back:hover { border-color: var(--color-gray); color: var(--color-dark); }

/* --- NEW Modern Data Entry UI --- */
.report-generator-container .dashboard-card {
    margin-bottom: 2rem;
}
.dashboard-card h3 { font-size: 1.2rem; margin-bottom: 1.5rem; }

.data-entry-header {
    display: grid;
    padding: 0 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-gray);
    font-weight: 600;
}
.renewals-header { grid-template-columns: 2fr repeat(7, 1fr) 40px; }
.income-expenses-header { grid-template-columns: 3fr 1fr 1fr 40px; }

.data-row {
    display: grid;
    align-items: center;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}
.data-row:hover { background-color: #f8f9fa; }
.renewals-grid { grid-template-columns: 2fr repeat(7, 1fr) 40px; gap: 1rem; }
.income-expenses-grid { grid-template-columns: 3fr 1fr 1fr 40px; gap: 1rem; }

.input-field { display: flex; flex-direction: column; }
.input-field label { font-size: 0.75rem; color: var(--color-gray); margin-bottom: 4px; display: none; } /* Hide labels by default, shown on mobile */
.data-row input { width: 100%; padding: 10px; border: 1px solid #dee2e6; border-radius: 6px; font-family: var(--font-family); font-size: 1rem; }
.data-row input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 2px rgba(0, 119, 182, 0.2); }

.btn-add-item { background: none; border: 1px dashed var(--color-gray); color: var(--color-gray); padding: 0.75rem; margin-top: 1.5rem; border-radius: 8px; cursor: pointer; font-weight: 700; width: 100%; transition: all 0.2s ease; }
.btn-add-item:hover { background-color: var(--color-primary-light); color: var(--color-primary); border-color: var(--color-primary); border-style: solid; }

.btn-delete-row { background-color: #f8f9fa; color: var(--color-gray); border: 1px solid #dee2e6; border-radius: 50%; width: 32px; height: 32px; font-size: 1.5rem; line-height: 1; cursor: pointer; transition: all 0.2s ease; }
.btn-delete-row:hover { background-color: #e63946; color: white; border-color: #e63946; }

/* --- Summary & Results Preview --- */
#summary-preview { margin-top: 1rem; }
.summary-line { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid #e9ecef; }
.summary-line:last-child { border-bottom: none; }
.summary-line.total { font-weight: 700; }
.summary-line.net-total { font-weight: 700; font-size: 1.1rem; color: var(--color-primary); border-top: 2px solid var(--color-dark); margin-top: 0.5rem; padding-top: 0.5rem;}
#generate-btn { width: 100%; margin-top: 2rem; }
.results-container { margin-top: 2rem; display: none; }
#results-table { width: 100%; border-collapse: collapse; }
#results-table th, #results-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #e9ecef; }
#results-table th { background-color: var(--color-light); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
#results-table tbody tr:nth-child(even) { background-color: var(--color-light); }
#results-table .numeric { text-align: right; }
.btn-download { display: none; width: 100%; margin-top: 1.5rem; }

/* Responsive adjustments for the new UI */
@media (max-width: 768px) {
    .data-entry-header { display: none; } /* Hide headers on mobile */
    .input-field label { display: block; } /* Show labels on mobile */
    .renewals-grid, .income-expenses-grid { grid-template-columns: 1fr; } /* Stack everything */
    .data-row { padding-left: 0; padding-right: 0; }
    .data-inputs { display: flex; flex-direction: column; gap: 1rem; }
}
/* --- Button Size Adjustment --- */
#generate-btn {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* --- Button Size Adjustment --- */
#generate-btn {
    padding: 0.5rem 0.5rem;
    font-size: 1.05rem;
}
/* --- projects page --- */
body {
    background-color: var(--color-white); /* Use a slightly different background for this page */
}

.projects-main {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 120px; /* More space for the header */
}

.page-header {
    text-align: center;
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease-out;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--color-dark);
}

.page-header p {
    font-size: 1.1rem;
    color: var(--color-gray);
    max-width: 60ch;
    margin: 1rem auto 0;
}

.project-detail {
    padding: 60px 0;
    border-bottom: 1px solid #dee2e6;
}

.project-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: flex-start;
}

.project-detail.layout-reversed .project-content-grid {
    direction: rtl;
}

.project-detail.layout-reversed .project-text {
    direction: ltr;
}

.project-text h2 {
    font-size: 2rem;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.project-summary {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-gray);
    margin-bottom: 2rem;
}

.project-blog h3 {
    font-size: 1.2rem;
    color: var(--color-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-blog p {
    color: #495057; /* Slightly lighter than main text */
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
    list-style: none;
    padding: 0;
}

.tech-list span {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
}

.project-media img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 25px rgba(0,0,0,0.1);
}

.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Animations from main stylesheet for reuse if needed */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* --- CSS Variables --- */
:root {
    --color-primary: #007bff;
    --color-primary-light: #e6f2ff;
    --color-secondary: #6c757d;
    --color-secondary-light: #f8f9fa;
    --color-dark: #212529;
    --color-gray: #6c757d;
    --color-light-gray: #e9ecef;
    --color-white: #ffffff;
    --color-danger: #dc3545;
    --color-success: #28a745;
    --font-family: 'Inter', sans-serif;
    --transition-speed: 0.3s;
}

/* --- General Dashboard Layout --- */
.dashboard-main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.dashboard-header {
    margin-bottom: 2rem;
    text-align: center;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.dashboard-header p {
    font-size: 1.1rem;
    color: var(--color-gray);
    margin-bottom: 0;
}

.dashboard-card {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.dashboard-card > .dashboard-header {
    margin-bottom: 1rem;
}

/* --- Navigation & Buttons --- */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--color-light-gray);
    color: var(--color-gray);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 1rem;
    text-decoration: none;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

.btn-back:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color var(--transition-speed) ease;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color var(--transition-speed) ease;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-download {
    background-color: var(--color-success);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color var(--transition-speed) ease;
}

.btn-download:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: var(--color-danger);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color var(--transition-speed) ease;
}

.btn-danger:hover {
    background-color: #c82333;
}

.dashboard-menu button[disabled] {
    background-color: var(--color-light-gray);
    color: var(--color-gray);
    cursor: not-allowed;
}

/* --- Dashboard Menu List --- */
.dashboard-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.dashboard-menu li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background-color: var(--color-secondary-light);
    border-radius: 12px;
    border: 1px solid var(--color-light-gray);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.dashboard-menu li:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.menu-item-text {
    flex-grow: 1;
}

.menu-item-title {
    font-weight: 700;
    font-size: 1.25rem;
    display: block;
}

.menu-item-desc {
    font-size: 0.9rem;
    color: var(--color-gray);
    display: block;
}

/* --- Ticket System UI --- */
.action-bar {
    margin-bottom: 1.5rem;
    text-align: right;
}

.ticket-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.ticket-item {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.ticket-item:hover {
    background-color: #f4f7fa;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.ticket-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.ticket-content {
    flex-grow: 1;
}

.ticket-title {
    font-weight: 600;
    color: #333;
    font-size: 1.1em;
    margin-bottom: 0.25rem;
}

.ticket-subtitle {
    font-size: 0.9em;
    color: #666;
}

/* --- Status Dot Colors --- */
.ticket-status-dot[style*="background-color: #8a7ffc"] { /* Open */
    background-color: #4a90e2 !important;
}
.ticket-status-dot[style*="background-color: #50e3c2"] { /* In Progress */
    background-color: #f5a623 !important;
}
.ticket-status-dot[style*="background-color: #b8b8b8"] { /* Closed */
    background-color: #7ed321 !important;
}

/* --- Report Generator UI --- */
.report-generator-container .dashboard-card {
    margin-bottom: 2rem;
}
.dashboard-card h3 { font-size: 1.2rem; margin-bottom: 1.5rem; }

.data-entry-header {
    display: grid;
    padding: 0 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-gray);
    font-weight: 600;
}
.renewals-header { grid-template-columns: 2fr repeat(7, 1fr) 40px; }
.income-expenses-header { grid-template-columns: 3fr 1fr 1fr 40px; }

.data-row {
    display: grid;
    align-items: center;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    gap: 1rem;
}
.data-row:hover { background-color: #f8f9fa; }
.renewals-grid { grid-template-columns: 2fr repeat(7, 1fr) 40px; }
.income-expenses-grid { grid-template-columns: 3fr 1fr 1fr 40px; }

.input-field label {
    font-size: 0.75rem;
    color: var(--color-gray);
    margin-bottom: 4px;
    display: none;
}

.data-row input {
    width: 100%;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-family: var(--font-family);
    font-size: 1rem;
}
.data-row input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(0, 119, 182, 0.2);
}

.btn-add-item {
    background: none;
    border: 1px dashed var(--color-gray);
    color: var(--color-gray);
    padding: 0.75rem;
    margin-top: 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    width: 100%;
    transition: all 0.2s ease;
}
.btn-add-item:hover {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    border-color: var(--color-primary);
    border-style: solid;
}

.btn-delete-row {
    background-color: var(--color-light-gray);
    color: var(--color-gray);
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}
.btn-delete-row:hover {
    background-color: var(--color-danger);
    color: white;
    border-color: var(--color-danger);
}

/* --- Summary & Results Preview --- */
#summary-preview { margin-top: 1rem; }
.summary-line { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid #e9ecef; }
.summary-line:last-child { border-bottom: none; }
.summary-line.total { font-weight: 700; }
.summary-line.net-total { font-weight: 700; font-size: 1.1rem; color: var(--color-primary); border-top: 2px solid var(--color-dark); margin-top: 0.5rem; padding-top: 0.5rem; }
#generate-btn { width: 100%; margin-top: 2rem; }
.results-container { margin-top: 2rem; display: none; }
#results-table { width: 100%; border-collapse: collapse; }
#results-table th, #results-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #e9ecef; }
#results-table th { background-color: var(--color-secondary-light); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
#results-table tbody tr:nth-child(even) { background-color: var(--color-secondary-light); }
#results-table .numeric { text-align: right; }
.action-buttons { display: flex; gap: 1rem; margin-top: 20px; }


/* --- Report History UI --- */
.history-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.history-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #e0dfff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}
.history-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.history-item-info { flex-grow: 1; }
.history-item-info strong { font-weight: 600; font-size: 1.1em; color: #333; }
.history-item-info small { font-size: 0.85em; color: var(--color-gray); }
.history-item-actions { display: flex; gap: 10px; align-items: center; }
.history-item-actions .btn-download {
    background-color: var(--color-primary);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
}
.history-item-actions .btn-danger {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .data-entry-header {
        display: none;
    }
    .input-field label {
        display: block;
    }
    .renewals-grid, .income-expenses-grid {
        grid-template-columns: 1fr;
    }
    .data-row {
        padding-left: 0;
        padding-right: 0;
    }
    .data-inputs {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .action-buttons {
        flex-direction: column;
    }
    .btn-download, .btn-secondary {
        width: 100%;
        margin-top: 0.5rem;
    }
}


/* --- Additional Styles for Projects Page --- */
/* --- CSS Variables --- */
:root {
    --color-primary: #007bff;
    --color-primary-light: #e6f2ff;
    --color-secondary: #6c757d;
    --color-secondary-light: #f8f9fa;
    --color-dark: #212529;
    --color-gray: #6c757d;
    --color-light-gray: #e9ecef;
    --color-white: #ffffff;
    --color-danger: #dc3545;
    --color-success: #28a745;
    --font-family: 'Inter', sans-serif;
    --transition-speed: 0.3s;
}

/* --- General Dashboard Layout --- */
.dashboard-main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.dashboard-header {
    margin-bottom: 2rem;
    text-align: center;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.dashboard-header p {
    font-size: 1.1rem;
    color: var(--color-gray);
    margin-bottom: 0;
}

.dashboard-card {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.dashboard-card > .dashboard-header {
    margin-bottom: 1rem;
}

/* --- Navigation & Buttons --- */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--color-light-gray);
    color: var(--color-gray);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 1rem;
    text-decoration: none;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

.btn-back:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color var(--transition-speed) ease;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color var(--transition-speed) ease;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-download {
    background-color: var(--color-success);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color var(--transition-speed) ease;
}

.btn-download:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: var(--color-danger);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color var(--transition-speed) ease;
}

.btn-danger:hover {
    background-color: #c82333;
}

.dashboard-menu button[disabled] {
    background-color: var(--color-light-gray);
    color: var(--color-gray);
    cursor: not-allowed;
}

/* --- Dashboard Menu List --- */
.dashboard-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.dashboard-menu li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background-color: var(--color-secondary-light);
    border-radius: 12px;
    border: 1px solid var(--color-light-gray);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.dashboard-menu li:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.menu-item-text {
    flex-grow: 1;
}

.menu-item-title {
    font-weight: 700;
    font-size: 1.25rem;
    display: block;
}

.menu-item-desc {
    font-size: 0.9rem;
    color: var(--color-gray);
    display: block;
}

/* --- Ticket System UI --- */
.action-bar {
    margin-bottom: 1.5rem;
    text-align: right;
}

.ticket-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.ticket-item {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.ticket-item:hover {
    background-color: #f4f7fa;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.ticket-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.ticket-content {
    flex-grow: 1;
}

.ticket-title {
    font-weight: 600;
    color: #333;
    font-size: 1.1em;
    margin-bottom: 0.25rem;
}

.ticket-subtitle {
    font-size: 0.9em;
    color: #666;
}

.ticket-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-edit-ticket, .btn-delete-ticket {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
    border: none;
}
.btn-edit-ticket {
    background-color: #007bff;
    color: white;
}
.btn-edit-ticket:hover {
    background-color: #0056b3;
}
.btn-delete-ticket {
    background-color: #dc3545;
    color: white;
}
.btn-delete-ticket:hover {
    background-color: #c82333;
}

/* --- Status Dot Colors --- */
.ticket-status-dot[style*="background-color: #8a7ffc"] { /* Open */
    background-color: #4a90e2 !important;
}
.ticket-status-dot[style*="background-color: #50e3c2"] { /* In Progress */
    background-color: #f5a623 !important;
}
.ticket-status-dot[style*="background-color: #b8b8b8"] { /* Closed */
    background-color: #7ed321 !important;
}

/* --- Report Generator UI --- */
.report-generator-container .dashboard-card {
    margin-bottom: 2rem;
}
.dashboard-card h3 { font-size: 1.2rem; margin-bottom: 1.5rem; }

.data-entry-header {
    display: grid;
    padding: 0 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: var(--color-gray);
    font-weight: 600;
}
.renewals-header { grid-template-columns: 2fr repeat(7, 1fr) 40px; }
.income-expenses-header { grid-template-columns: 3fr 1fr 1fr 40px; }

.data-row {
    display: grid;
    align-items: center;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    gap: 1rem;
}
.data-row:hover { background-color: #f8f9fa; }
.renewals-grid { grid-template-columns: 2fr repeat(7, 1fr) 40px; }
.income-expenses-grid { grid-template-columns: 3fr 1fr 1fr 40px; }

.input-field label {
    font-size: 0.75rem;
    color: var(--color-gray);
    margin-bottom: 4px;
    display: none;
}

.data-row input {
    width: 100%;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-family: var(--font-family);
    font-size: 1rem;
}
.data-row input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(0, 119, 182, 0.2);
}

.btn-add-item {
    background: none;
    border: 1px dashed var(--color-gray);
    color: var(--color-gray);
    padding: 0.75rem;
    margin-top: 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    width: 100%;
    transition: all 0.2s ease;
}
.btn-add-item:hover {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    border-color: var(--color-primary);
    border-style: solid;
}

.btn-delete-row {
    background-color: var(--color-light-gray);
    color: var(--color-gray);
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}
.btn-delete-row:hover {
    background-color: var(--color-danger);
    color: white;
    border-color: var(--color-danger);
}

/* --- Summary & Results Preview --- */
#summary-preview { margin-top: 1rem; }
.summary-line { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid #e9ecef; }
.summary-line:last-child { border-bottom: none; }
.summary-line.total { font-weight: 700; }
.summary-line.net-total { font-weight: 700; font-size: 1.1rem; color: var(--color-primary); border-top: 2px solid var(--color-dark); margin-top: 0.5rem; padding-top: 0.5rem; }
#generate-btn { width: 100%; margin-top: 2rem; }
.results-container { margin-top: 2rem; display: none; }
#results-table { width: 100%; border-collapse: collapse; }
#results-table th, #results-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #e9ecef; }
#results-table th { background-color: var(--color-secondary-light); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
#results-table tbody tr:nth-child(even) { background-color: var(--color-secondary-light); }
#results-table .numeric { text-align: right; }
.action-buttons { display: flex; gap: 1rem; margin-top: 20px; }


/* --- Report History UI --- */
.history-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.history-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #e0dfff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}
.history-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.history-item-info { flex-grow: 1; }
.history-item-info strong { font-weight: 600; font-size: 1.1em; color: #333; }
.history-item-info small { font-size: 0.85em; color: var(--color-gray); }
.history-item-actions { display: flex; gap: 10px; align-items: center; }
.history-item-actions .btn-download {
    background-color: var(--color-primary);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
}
.history-item-actions .btn-danger {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
}

/* --- Modal Styles --- */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s forwards;
}
.modal-content {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: slideIn 0.3s forwards;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}
.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}
.close-btn {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-gray);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}
.close-btn:hover {
    color: var(--color-danger);
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.form-group input, .form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0,123,255,0.25);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .data-entry-header {
        display: none;
    }
    .input-field label {
        display: block;
    }
    .renewals-grid, .income-expenses-grid {
        grid-template-columns: 1fr;
    }
    .data-row {
        padding-left: 0;
        padding-right: 0;
    }
    .data-inputs {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .action-buttons {
        flex-direction: column;
    }
    .btn-download, .btn-secondary {
        width: 100%;
        margin-top: 0.5rem;
    }
}