﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: linear-gradient(180deg, #f5f8f6 0%, var(--tmc-bg) 100%);
    color: var(--tmc-text);
}

a, .btn-link {
    color: var(--tmc-primary);
}

.btn-primary {
    color: #fff;
    background-color: var(--tmc-primary);
    border-color: var(--tmc-primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    color: #fff;
    background-color: var(--tmc-primary-strong);
    border-color: var(--tmc-primary-strong);
}

.btn-outline-primary {
    color: var(--tmc-primary);
    border-color: rgba(31, 106, 67, 0.35);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--tmc-primary);
    border-color: var(--tmc-primary);
}

.btn-success {
    background-color: var(--tmc-primary);
    border-color: var(--tmc-primary);
}

.btn-success:hover,
.btn-success:focus {
    background-color: var(--tmc-primary-strong);
    border-color: var(--tmc-primary-strong);
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.card,
.modal-content,
.table,
.form-control,
.form-select {
    border-color: var(--tmc-border);
}

.card {
    border: 1px solid var(--tmc-border);
    box-shadow: var(--tmc-shadow);
}

.form-control,
.form-select {
    background-color: var(--tmc-surface-soft);
    color: var(--tmc-text);
}

.form-control:focus,
.form-select:focus,
.btn:focus,
.btn.focus {
    border-color: rgba(31, 106, 67, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(31, 106, 67, 0.14);
}

.brighter-navbar {
    background-color: #f8f9fa; /* Light gray color */
    color: black; /* Dark text for contrast */
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

    .brighter-navbar {
    background-color: #f8f9fa; /* Light gray color */
    color: black; /* Dark text for contrast */
}


.radzen-datagrid-header, .radzen-datagrid-footer {
    background-color: var(--tmc-primary-soft) !important;
    padding: 10px !important;
    /*font-weight: bold !important;*/
    color: var(--tmc-text) !important;
}

.bluecadet-header th {
    background-color: var(--tmc-primary); /* Replace with actual color code */
    color: white !important;
}




.profile-card {
    /* Styling for the card */
    position: absolute; /* Adjust positioning as needed */
    right: 20px; /* Position near the profile photo */
    /* Add more styling as needed */
}

.profile-section {
    /* Adjust as needed to position your profile section */
    position: relative;
    z-index: 10;
}

.profile-photo {
    width: 50px; /* Adjust width as needed */
    height: auto; /* Maintain aspect ratio */
    /* Add more styling as needed */
}

.profile-info {
    display: flex;
    gap: 10px; /* Adjust the gap between username and lastname */
}

.username, .lastname {
    color: var(--tmc-primary); /* Darker shade of cadet blue */
    font-weight: bold; /* Make the text bold */
}

/* site.css */
.icon-spacing {
    margin-right: 1.5rem;
}


.gradient-background {
    background: linear-gradient(white, brown);
    height: 100vh; /* Adjust the height as needed */
    width: 100%;
}


.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.display-block {
    display: block;
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

/* ========================================
   HOME PAGE - ELEGANT DESIGN
   ======================================== */

.home-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8faf8 0%, #e8f5e9 100%);
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3rem 4rem;
    min-height: 450px;
    background: linear-gradient(135deg, #123524 0%, #1f6a43 52%, #2b8a57 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    flex: 1;
    max-width: 600px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-badge i {
    font-size: 1.2rem;
}

.hero-title {
    color: white;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-title .highlight {
    color: #90EE90;
    display: block;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--tmc-primary);
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: var(--tmc-primary-strong);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: white;
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    transform: translateY(-3px);
}

.hero-image-container {
    position: relative;
    z-index: 2;
    flex: 0 0 400px;
    animation: fadeInRight 0.8s ease-out;
}

.hero-image {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* Features Section */
.features-section {
    padding: 4rem 2rem;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    animation: fadeInUp 0.6s ease-out;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: white;
}

.feature-icon-green {
    background: linear-gradient(135deg, #1f6a43, #49a16f);
}

.feature-icon-blue {
    background: linear-gradient(135deg, #1976D2, #42A5F5);
}

.feature-icon-purple {
    background: linear-gradient(135deg, #7B1FA2, #BA68C8);
}

.feature-icon-orange {
    background: linear-gradient(135deg, #F57C00, #FFB74D);
}

.feature-card h3 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #123524 0%, #1f6a43 100%);
    padding: 3rem 2rem;
}

.stats-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
}

/* Home Footer */
.home-footer {
    background: #1a1a1a;
    padding: 1.5rem 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    height: 50px;
    width: auto;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-flag {
    height: 40px;
    width: auto;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image-container {
        margin-top: 2rem;
        flex: 0 0 auto;
    }

    .hero-image {
        transform: none;
        max-width: 300px;
    }

    .hero-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .stats-container {
        gap: 2rem;
    }

    .stat-divider {
        display: none;
    }

    .stat-item {
        flex: 0 0 45%;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .footer-content {
        justify-content: center;
        text-align: center;
    }
}



/* ========================================
   AUTH PAGES
   ======================================== */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background:
        radial-gradient(circle at top right, rgba(73, 161, 111, 0.12), transparent 26%),
        linear-gradient(180deg, #f5f8f6 0%, var(--tmc-bg) 100%);
}

.auth-shell {
    width: 100%;
    max-width: 1120px;
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(320px, 520px);
    gap: 2rem;
    align-items: center;
}

.auth-panel {
    padding: 2.4rem 2rem;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 34%),
        linear-gradient(135deg, #123524 0%, #1f6a43 52%, #2b8a57 100%);
    color: #fff;
    box-shadow: 0 24px 60px rgba(17, 50, 34, 0.18);
}

.auth-panel-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.auth-panel-title {
    margin: 1.25rem 0 0.8rem;
    font-size: 2.2rem;
    line-height: 1.08;
    font-weight: 700;
}

.auth-panel-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.7;
    font-size: 0.98rem;
}

.auth-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--tmc-border);
    border-radius: 26px;
    box-shadow: 0 24px 60px rgba(17, 50, 34, 0.12);
    overflow: hidden;
}

.auth-card-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
    border-bottom: 1px solid rgba(31, 106, 67, 0.08);
}

.auth-logo {
    width: auto;
    max-width: 220px;
    max-height: 74px;
    object-fit: contain;
}

.auth-card-title {
    margin: 1rem 0 0;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--tmc-text);
}

.auth-card-body {
    padding: 1.8rem 2rem 2rem;
}

.auth-label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--tmc-text-soft);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.auth-links a {
    color: var(--tmc-primary);
    font-weight: 600;
}

.auth-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(31, 106, 67, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--tmc-text-soft);
    font-size: 0.88rem;
}

.auth-footer img {
    height: 34px;
    width: auto;
}

.auth-message {
    max-width: 560px;
    margin: 0 auto 1rem;
}

@media (max-width: 991.98px) {
    .auth-shell {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .auth-panel {
        padding: 1.8rem 1.5rem;
    }

    .auth-card-header,
    .auth-card-body {
        padding-left: 1.35rem;
        padding-right: 1.35rem;
    }
}

/* ========================================
   ADMIN PAGES
   ======================================== */

.admin-page {
    color: var(--tmc-text);
}

.admin-hero-card {
    position: relative;
    overflow: hidden;
    padding: 1.6rem 1.75rem;
    margin-bottom: 1.25rem;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 32%),
        linear-gradient(135deg, #123524 0%, #1f6a43 52%, #2b8a57 100%);
    color: #fff;
    box-shadow: 0 24px 60px rgba(17, 50, 34, 0.16);
}

.admin-hero-card h1,
.admin-hero-card h2,
.admin-hero-card h3,
.admin-hero-card h4,
.admin-hero-card h5,
.admin-hero-card p,
.admin-hero-card span {
    color: inherit;
}

.admin-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.admin-hero-title {
    margin: 0;
    font-size: clamp(1.45rem, 2vw, 2rem);
    font-weight: 700;
    line-height: 1.1;
}

.admin-hero-subtitle {
    margin: 0.6rem 0 0;
    max-width: 780px;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.6;
}

.admin-toolbar-card,
.admin-table-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--tmc-border);
    border-radius: 22px;
    box-shadow: var(--tmc-shadow);
}

.admin-toolbar-card {
    margin-bottom: 1rem;
}

.admin-toolbar-body {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
    padding: 1.1rem 1.2rem;
}

.admin-search {
    flex: 1 1 280px;
    min-width: 220px;
}

.admin-table-card .card-body,
.admin-table-body {
    padding: 1rem 1.2rem 1.2rem;
}

.admin-table-header {
    padding: 1.1rem 1.2rem 0.2rem;
}

.admin-table-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tmc-text);
}

.admin-table-subtitle {
    margin: 0.25rem 0 0;
    color: var(--tmc-text-soft);
    font-size: 0.9rem;
}

.admin-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table thead th {
    background: var(--tmc-primary);
    color: #fff;
    border: none !important;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.9rem 1rem;
    white-space: nowrap;
}

.admin-table tbody td {
    padding: 0.9rem 1rem;
    border-top: none;
    border-bottom: 1px solid #e7efe9;
    vertical-align: middle;
}

.admin-table tbody tr:hover td {
    background: #f7fbf8;
}

.admin-inline-actions {
    display: flex;
    gap: 0.45rem;
    align-items: center;
}

.admin-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 22, 15, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1050;
}

.admin-modal-panel {
    width: 100%;
    max-width: 640px;
    background: #fff;
    border: 1px solid var(--tmc-border);
    border-radius: 24px;
    box-shadow: 0 26px 70px rgba(17, 50, 34, 0.18);
    overflow: hidden;
}

.admin-modal-header {
    padding: 1.2rem 1.4rem;
    border-bottom: 1px solid rgba(31, 106, 67, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
}

.admin-modal-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tmc-text);
}

.admin-modal-body {
    padding: 1.25rem 1.4rem;
}

.admin-modal-footer {
    padding: 1rem 1.4rem 1.25rem;
    border-top: 1px solid rgba(31, 106, 67, 0.08);
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.admin-role-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .admin-hero-card {
        margin-top: 0.8rem;
        padding: 1.25rem;
        border-radius: 22px 22px 0 0;
    }

    .admin-toolbar-body {
        padding: 1rem;
    }

    .admin-table-header,
    .admin-table-card .card-body,
    .admin-table-body,
    .admin-modal-header,
    .admin-modal-body,
    .admin-modal-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

:root {
    --tmc-bg: #eef4ef;
    --tmc-surface: #ffffff;
    --tmc-surface-soft: #f6faf7;
    --tmc-border: #d7e5db;
    --tmc-text: #163024;
    --tmc-text-soft: #698171;
    --tmc-primary: #1f6a43;
    --tmc-primary-strong: #144b2f;
    --tmc-primary-soft: #e6f1ea;
    --tmc-shadow: 0 16px 40px rgba(17, 50, 34, 0.08);
}
