/* ========== Light Theme ========== */

/* Body and main layout */
body.light-theme {
    background: linear-gradient(
        135deg,
        #f5f7fa 0%,
        #e4e8ec 50%,
        #d0d5dc 100%
    );
    color: #333333;
}

/* Header */
.light-theme #top {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #333333;
}

.light-theme #top a:link,
.light-theme #top a:visited {
    color: #2c2c49;
}

.light-theme #top a:link:hover,
.light-theme #top a:visited:hover {
    color: #4a9eff;
}

.light-theme #top .grid_three > div:first-child {
    color: #2c2c49;
}

/* Header brand and links */
.light-theme .header-brand {
    cursor: pointer;
    font-family: Materiam, sans-serif;
    font-size: 38px;
    color: #2c2c49;
    margin-left: 10px;
    width: 240px;
}

.light-theme .header-link {
    color: #2c2c49;
}

.light-theme .header-link:hover {
    color: #2563eb;
}

/* Updates console in header */
.light-theme #updates {
    background-color: #f5f5f5 !important;
    color: #333333 !important;
    border: 1px solid #e0e0e0 !important;
}

/* Footer */
.light-theme #bottom {
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
}

/* Footer text */
.light-theme .footer-text {
    color: #333333;
    font-size: 24px;
}

/* Center content */
.light-theme .center_content {
    color: #333333;
}

/* Links */
.light-theme a:link, .light-theme a:visited {
    color: #2563eb;
}

.light-theme a:link:hover, .light-theme a:visited:hover {
    color: #1d4ed8;
}

/* PrimeFaces Components */

/* Panels */
.light-theme .ui-panel {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.light-theme .ui-panel-titlebar {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    color: #333333;
}

.light-theme .ui-panel-content {
    background-color: #ffffff;
    color: #333333;
}

/* TabView */
.light-theme .ui-tabs {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
}

.light-theme .ui-tabs-nav {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
}

.light-theme .ui-tabs-nav li {
    background-color: transparent;
    border: none;
}

.light-theme .ui-tabs-nav li a {
    color: #666666;
}

.light-theme .ui-tabs-nav li.ui-tabs-active a,
.light-theme .ui-tabs-nav li:hover a {
    color: #2563eb;
}

.light-theme .ui-tabs-nav li.ui-tabs-active {
    border-bottom: 3px solid #2563eb;
}

.light-theme .ui-tabs-panels {
    background-color: #ffffff;
    color: #333333;
}

/* DataTable */
.light-theme .ui-datatable {
    background-color: #ffffff;
}

.light-theme .ui-datatable thead th {
    background: #f8f9fa;
    color: #555555;
    border-bottom: 2px solid #e0e0e0;
}

.light-theme .ui-datatable tbody td {
    color: #333333;
    border-bottom: 1px solid #f0f0f0;
}

.light-theme .ui-datatable tbody tr:hover td {
    background: #f5f8ff;
}

.light-theme .ui-datatable-even {
    background-color: #ffffff !important;
    color: #333333;
}

.light-theme .ui-datatable-odd {
    background-color: #f8f9fa !important;
    color: #333333;
}

.light-theme .ui-editable-column {
    color: #333333;
}

/* Input fields */
.light-theme .ui-inputfield,
.light-theme .ui-inputnumber,
.light-theme .ui-inputtext {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #d0d0d0;
}

.light-theme .ui-inputfield:focus {
    border-color: #2563eb;
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.2);
}

/* SelectOneMenu */
.light-theme .ui-selectonemenu {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #d0d0d0;
}

.light-theme .ui-selectonemenu-trigger {
    background-color: #f8f9fa;
    color: #333333;
}

.light-theme .ui-selectonemenu-panel {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.light-theme .ui-selectonemenu-items {
    background-color: #ffffff;
}

.light-theme .ui-selectonemenu-item {
    color: #333333;
}

.light-theme .ui-selectonemenu-item:hover {
    background-color: #f0f4ff;
}

/* Buttons */
.light-theme .ui-button {
    background-color: #2563eb;
    color: #ffffff;
    border: none;
}

.light-theme .ui-button:hover {
    background-color: #1d4ed8;
}

.light-theme .ui-button-danger {
    background-color: #dc2626;
}

.light-theme .ui-button-danger:hover {
    background-color: #b91c1c;
}

/* Labels */
.light-theme label,
.light-theme .ui-outputlabel {
    color: #333333;
}

/* Form container */
.light-theme .form-container {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.light-theme .form-field label {
    color: #333333;
}

/* Dialogs */
.light-theme .ui-dialog {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.light-theme .ui-dialog-titlebar {
    background-color: #f8f9fa;
    color: #333333;
    border-bottom: 1px solid #e0e0e0;
}

.light-theme .ui-dialog-content {
    background-color: #ffffff;
    color: #333333;
}

/* Growl messages */
.light-theme .ui-growl-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Admin grid cards */
.light-theme .admin-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
}

.light-theme .admin-card:hover {
    background-color: #f8f9fa;
    border-color: #2563eb;
}

/* Preferences button */
.light-theme .preferences-btn {
    background-color: transparent;
    color: #666666;
    border: 1px solid #d0d0d0;
}

.light-theme .preferences-btn:hover {
    color: #2563eb;
    border-color: #2563eb;
}

/* ========== Admin Page Styles ========== */

/* Admin page container */
.light-theme .admin-container {
    background-color: #f5f7fa;
    min-height: 100vh;
    padding: 20px;
}

/* Admin page header */
.light-theme .admin-header {
    font-family: Materiam, sans-serif;
    font-size: 24px;
    color: #333333;
    background-color: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Admin menu grid */
.light-theme .admin-menu {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 10px;
    background-color: transparent;
}

/* Admin menu card */
.light-theme .admin-menu-card {
    cursor: pointer;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.light-theme .admin-menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: #2563eb;
}

.light-theme .admin-menu-card-content {
    background-color: white;
    color: #333333;
    padding: 20px;
    text-align: center;
    font-family: Materiam, sans-serif;
    font-size: 20px;
}

.light-theme .admin-menu-card-content img {
    width: 100%;
    max-width: 200px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

/* Status indicators */
.light-theme .status-active {
    color: #16a34a;
}

.light-theme .status-inactive {
    color: #dc2626;
}

/* ========== Header Nav Buttons ========== */
.light-theme .header-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0.5px solid rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.light-theme .header-nav-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: #333333;
}

.light-theme .header-nav-btn svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: rgba(0, 0, 0, 0.6);
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.light-theme .header-nav-btn:hover svg {
    stroke: #333333;
}

.light-theme .header-nav-btn .nav-label {
    font-size: 7px;
    color: rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 2px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.light-theme .header-nav-btn:hover .nav-label {
    color: #333333;
}

/* Admin nav button - red variant */
.light-theme .header-nav-btn-admin {
    border-color: rgba(220, 38, 38, 0.6);
    color: #dc2626;
}

.light-theme .header-nav-btn-admin:hover {
    background: rgba(220, 38, 38, 0.08);
    border-color: #dc2626;
    color: #b91c1c;
}

.light-theme .header-nav-btn-admin .nav-label {
    color: #dc2626;
}

.light-theme .header-nav-btn-admin:hover .nav-label {
    color: #b91c1c;
}

/* ========== DataView ========== */
.light-theme .ui-dataview {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
}

.light-theme .ui-dataview-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    color: #333333;
}

.light-theme .ui-dataview-content {
    background-color: #ffffff;
    color: #333333;
}

.light-theme .ui-dataview .ui-dataview-row {
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

.light-theme .ui-dataview .ui-dataview-row:hover {
    background-color: #f5f8ff;
}

/* DataView grid items */
.light-theme .product-grid-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
}

.light-theme .product-grid-item:hover {
    border-color: #2563eb;
}

.light-theme .product-grid-item-top,
.light-theme .product-grid-item-content,
.light-theme .product-grid-item-bottom {
    color: #333333;
}

/* DataView paginator */
.light-theme .ui-dataview .ui-paginator {
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.light-theme .ui-dataview .ui-paginator .ui-paginator-page,
.light-theme .ui-dataview .ui-paginator .ui-paginator-first,
.light-theme .ui-dataview .ui-paginator .ui-paginator-prev,
.light-theme .ui-dataview .ui-paginator .ui-paginator-next,
.light-theme .ui-dataview .ui-paginator .ui-paginator-last {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #d0d0d0;
}

.light-theme .ui-dataview .ui-paginator .ui-paginator-page:hover,
.light-theme .ui-dataview .ui-paginator .ui-paginator-first:hover,
.light-theme .ui-dataview .ui-paginator .ui-paginator-prev:hover,
.light-theme .ui-dataview .ui-paginator .ui-paginator-next:hover,
.light-theme .ui-dataview .ui-paginator .ui-paginator-last:hover {
    background-color: #f0f4ff;
}

.light-theme .ui-dataview .ui-paginator .ui-paginator-page.ui-state-active {
    background-color: #2563eb;
    color: #ffffff;
}

.light-theme .ui-dataview .ui-paginator .ui-paginator-current {
    color: #666666;
}

/* Project thumbnail in DataView */
.light-theme .project-thumbnail-container {
    margin: 5px;
    box-shadow: 1px 1px 4px 0px rgba(0, 0, 0, 0.2);
    width: 270px;
    background-color: #ffffff;
}

.light-theme .project-thumbnail {
    width: 260px;
    margin-left: 5px;
    cursor: pointer;
    background-color: #ffffff;
}
