/* Aplus Identity - Custom Styles */
/* Brand Colors: Primary Pink #F36F63, Dark Green #114946, White #FFFFFF */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 4rem);
    background-color: #f9fafb;
}

.dashboard-sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    height: calc(100vh - 4rem);
    overflow-y: auto;
}

.dashboard-sidebar::-webkit-scrollbar {
    width: 4px;
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 2px;
}

.dashboard-main {
    flex: 1;
    padding: 2rem;
    max-width: calc(100% - 260px);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-item {
    margin-bottom: 0.25rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9375rem;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background-color: #f9fafb;
    color: #114946;
}

.sidebar-link.active {
    color: #114946;
    background-color: #f0f9ff;
    border-left-color: #F36F63;
}

.sidebar-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    opacity: 0.7;
}

.sidebar-link:hover .sidebar-icon,
.sidebar-link.active .sidebar-icon {
    opacity: 1;
}

.sidebar-divider {
    height: 1px;
    background-color: #e5e7eb;
    margin: 1rem 1.5rem;
}

.sidebar-heading {
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Mobile Responsive Sidebar */
@media (max-width: 768px) {
    .dashboard-sidebar {
        position: fixed;
        left: -260px;
        z-index: 1000;
        transition: left 0.3s ease;
    }

    .dashboard-sidebar.open {
        left: 0;
    }

    .dashboard-main {
        max-width: 100%;
        padding: 1rem;
    }

    .mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 5rem;
        left: 1rem;
        z-index: 999;
        background: #114946;
        color: white;
        border: none;
        padding: 0.5rem 0.75rem;
        border-radius: 0.5rem;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .sidebar-overlay.active {
        display: block;
    }
}

@media (min-width: 769px) {

    .mobile-menu-toggle,
    .sidebar-overlay {
        display: none;
    }
}

/* Navigation */
.navbar {
    background-color: #114946;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.navbar-nav {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.navbar-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar-link:hover {
    color: #F36F63;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: #F36F63;
    color: white;
}

.btn-primary:hover {
    background-color: #e15a4e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 111, 99, 0.3);
}

.btn-secondary {
    background-color: #114946;
    color: white;
}

.btn-secondary:hover {
    background-color: #0d3634;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(17, 73, 70, 0.3);
}

.btn-outline {
    background-color: white;
    color: #114946;
    border: 2px solid #114946;
}

.btn-outline:hover {
    background-color: #114946;
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, #114946, #1a6d68);
    color: white;
    padding: 5rem 1rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Cards */
.card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
    border: 1px solid #f3f4f6;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #e5e7eb;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.card-text {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* Stat Cards */
.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.stat-label {
    font-size: 0.8125rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-value.primary {
    color: #F36F63;
}

.stat-value.secondary {
    color: #114946;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

/* Features Section */
.features {
    padding: 4rem 1rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: border-color 0.3s;
}

.feature-card:hover {
    border-color: #F36F63;
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    background-color: #F36F63;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.feature-icon svg {
    width: 2rem;
    height: 2rem;
    color: white;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #114946;
    margin-bottom: 0.5rem;
}

/* Stats Section */
.stats {
    background-color: #f9fafb;
    padding: 4rem 1rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #F36F63;
}

.stat-label {
    color: #666;
    margin-top: 0.5rem;
}

/* Projects */
.project-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #114946;
    margin-bottom: 0.5rem;
}

.project-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.project-title a:hover {
    color: #F36F63;
}

.project-budget {
    font-size: 1.5rem;
    font-weight: 700;
    color: #F36F63;
    white-space: nowrap;
}

.project-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

.project-description {
    color: #444;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Skills/Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    padding: 0.375rem 0.75rem;
    background-color: #f3f4f6;
    color: #374151;
    border-radius: 1rem;
    font-size: 0.875rem;
}

/* Footer */
.footer {
    background-color: #114946;
    color: white;
    padding: 3rem 1rem;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto 2rem;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #F36F63;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: #F36F63;
    box-shadow: 0 0 0 3px rgba(243, 111, 99, 0.1);
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.alert-error {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Section Spacing */
section {
    padding: 3rem 1rem;
}

/* Heading Styles */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #114946;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #114946;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #114946;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #114946;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .navbar-nav {
        gap: 1rem;
        font-size: 0.875rem;
    }

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .project-header {
        flex-direction: column;
    }
}

/* Search Bar */
.search-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: #F36F63;
    box-shadow: 0 0 0 3px rgba(243, 111, 99, 0.1);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state svg {
    width: 4rem;
    height: 4rem;
    color: #9ca3af;
    margin: 0 auto 1rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #6b7280;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #F36F63;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Modern Table Styles */
.table-wrapper {
    overflow-x: auto;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    font-size: 0.875rem;
}

.modern-table thead {
    background: linear-gradient(135deg, #114946 0%, #0d3734 100%);
    color: white;
}

.modern-table thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #0d3734;
}

.modern-table thead th:first-child {
    border-top-left-radius: 0.5rem;
}

.modern-table thead th:last-child {
    border-top-right-radius: 0.5rem;
}

.modern-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.modern-table tbody tr:hover {
    background-color: #f9fafb;
    transform: scale(1.001);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.modern-table tbody tr:last-child {
    border-bottom: none;
}

.modern-table tbody td {
    padding: 1rem;
    color: #374151;
    vertical-align: middle;
}

.modern-table tbody td:first-child {
    font-weight: 500;
}

/* Table Cell Types */
.table-cell-primary {
    font-weight: 600;
    color: #114946;
}

.table-cell-secondary {
    color: #6b7280;
    font-size: 0.8125rem;
}

.table-cell-actions {
    text-align: right;
    white-space: nowrap;
}

.table-cell-actions .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    margin-left: 0.5rem;
}

/* Table Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-badge.active,
.status-badge.open,
.status-badge.completed {
    background-color: #dcfce7;
    color: #166534;
}

.status-badge.pending,
.status-badge.in-progress {
    background-color: #fef3c7;
    color: #92400e;
}

.status-badge.suspended,
.status-badge.closed,
.status-badge.cancelled {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-badge.verified {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Table User Avatar */
.table-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.table-user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #F36F63, #114946);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.table-user-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.table-user-name {
    font-weight: 600;
    color: #111827;
}

.table-user-email {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Table Amount/Numbers */
.table-amount {
    font-weight: 700;
    font-size: 1rem;
}

.table-amount.positive {
    color: #16a34a;
}

.table-amount.negative {
    color: #dc2626;
}

.table-amount.neutral {
    color: #114946;
}

/* Table Sorting */
.table-sortable th {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 1.5rem;
}

.table-sortable th:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.table-sortable th::after {
    content: '⇅';
    position: absolute;
    right: 0.5rem;
    opacity: 0.5;
}

.table-sortable th.sorted-asc::after {
    content: '↑';
    opacity: 1;
}

.table-sortable th.sorted-desc::after {
    content: '↓';
    opacity: 1;
}

/* Table Filters */
.table-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.table-filters-left {
    flex: 1;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.table-filters-right {
    display: flex;
    gap: 0.75rem;
}

.table-search {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
}

.table-search input {
    border: none;
    outline: none;
    flex: 1;
    min-width: 200px;
}

/* Responsive Tables */
@media (max-width: 768px) {
    .modern-table {
        font-size: 0.75rem;
    }

    .modern-table thead th,
    .modern-table tbody td {
        padding: 0.75rem 0.5rem;
    }

    .table-user {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .table-cell-actions {
        text-align: left;
    }

    .table-cell-actions .btn {
        display: block;
        width: 100%;
        margin: 0.25rem 0;
    }
}

/* Table Empty State */
.table-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.table-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.table-empty-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.table-empty-message {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    text-decoration: none;
    color: #374151;
}

.pagination a:hover {
    background-color: #F36F63;
    color: white;
    border-color: #F36F63;
}

.pagination .active {
    background-color: #114946;
    color: white;
    border-color: #114946;
}