:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #64748b;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
}

body {
    background-color: var(--gray-100);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    color: var(--gray-700);
}

/* Navbar Styles */
.navbar {
    background: white;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    color: var(--gray-800) !important;
}

.nav-link {
    color: var(--gray-600) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.nav-link:hover {
    background-color: var(--gray-50);
    color: var(--gray-900) !important;
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    text-align: right;
}

.user-name {
    color: var(--gray-900);
    font-weight: 600;
    font-size: 0.938rem;
}

.user-role {
    color: var(--gray-500);
    font-size: 0.813rem;
    font-weight: 500;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
}

.main-content .container {
    margin-top: 1rem;
}

/* Stats Cards */
.stats-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    height: 100%;
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.stats-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.stats-label {
    color: var(--gray-500);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Table Styles */
.table-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    font-size: 0.813rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--gray-600);
    padding: 0.75rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.table td {
    vertical-align: middle;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0.75rem;
    color: var(--gray-700);
}

.table td .text-truncate {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table tr:hover {
    background-color: var(--gray-50);
}

/* Badges */
.badge {
    white-space: nowrap;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
}

.badge.bg-warning {
    background-color: #fef3c7 !important;
    color: #92400e;
}

.badge.bg-success {
    background-color: #dcfce7 !important;
    color: #166534;
}

.badge.bg-danger {
    background-color: #fee2e2 !important;
    color: #991b1b;
}

/* Buttons */
.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.btn-icon:hover {
    transform: translateY(-1px);
}

/* Forms */
.form-control {
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-label {
    color: var(--gray-700);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.modal-header {
    border-bottom: 1px solid var(--gray-200);
    padding: 1.25rem 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--gray-200);
    padding: 1.25rem 1.5rem;
}

.modal-title {
    font-weight: 600;
    color: var(--gray-900);
}

/* Charts */
.chart-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    height: 100%;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.chart-title {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 1.125rem;
}

/* Utilities */
.text-amount {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    color: var(--gray-800);
}

/* Text and Color Utilities */
.text-gray-600 {
    color: var(--gray-600) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.text-muted {
    color: var(--gray-500) !important;
}

.text-center {
    text-align: center !important;
}

.text-end {
    text-align: end !important;
}

.text-nowrap {
    white-space: nowrap !important;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-decoration-none {
    text-decoration: none !important;
}

/* Status Icons */
.status-icon-success {
    color: var(--success);
}

.status-icon-danger {
    color: var(--danger);
}

/* Status Badges */
.status-badge-pending {
    background-color: #fef3c7 !important;
    color: #92400e;
    white-space: nowrap;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
}

.status-badge-success, .status-badge-paid {
    background-color: #dcfce7 !important;
    color: #166534;
    white-space: nowrap;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
}

.status-badge-danger {
    background-color: #fee2e2 !important;
    color: #991b1b;
    white-space: nowrap;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
}

.status-badge-warning, .status-badge-unpaid {
    background-color: #fef3c7 !important;
    color: #92400e;
    white-space: nowrap;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
}

/* Status Text Colors */
.status-text-success {
    color: var(--success);
}

.status-text-danger {
    color: var(--danger);
}

.status-text-warning {
    color: var(--warning);
}

.status-text-info {
    color: var(--primary);
}

/* Large Status Badge */
.status-badge-large {
    font-size: 1rem;
}

/* Table Column Widths */
.table th.col-id {
    width: 60px;
}

.table th.col-date {
    width: 100px;
}

.table th.col-title {
    width: 20%;
}

.table th.col-raiser {
    width: 15%;
}

.table th.col-supervisor {
    width: 15%;
}

.table th.col-manager {
    width: 15%;
}

.table th.col-ceo {
    width: 15%;
}

.table th.col-amount {
    width: 100px;
}

.table th.col-payment {
    width: 100px;
}

.table th.col-my-action {
    width: 15%;
}

.table th.col-payment-status {
    width: 15%;
}

.table th.col-actions {
    width: 80px;
}

/* Login Page Styles */
.login-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: 
        radial-gradient(2px 2px at 20px 30px, #4a90e2, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, #4a90e2, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, #4a90e2, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #4a90e2, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 130px 80px, #4a90e2, rgba(0,0,0,0));
    background-repeat: repeat;
    animation: twinkle 5s infinite;
    opacity: 0.3;
}

@keyframes twinkle {
    0% { opacity: 0.3; }
    50% { opacity: 0.15; }
    100% { opacity: 0.3; }
}

.login-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    margin: 2rem auto;
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    width: 150px;
    height: 150px;
    margin-bottom: 1rem;
}

.company-name {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.system-name {
    color: #4a90e2;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.login-container .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(74, 144, 226, 0.3);
    color: #2c3e50;
    padding: 0.8rem 1rem;
}

.login-container .form-control:focus {
    background: #ffffff;
    border-color: #4a90e2;
    color: #2c3e50;
    box-shadow: 0 0 0 0.25rem rgba(74,144,226,0.25);
}

.login-container .form-control::placeholder {
    color: #95a5a6;
}

.input-group-text {
    background: rgba(74, 144, 226, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.3);
    color: #4a90e2;
}

.login-container .btn-primary {
    background: linear-gradient(45deg, #4a90e2, #5cb3ff);
    border: none;
    padding: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.login-container .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74,144,226,0.4);
}

.login-container .btn-secondary {
    background: #ffffff;
    border: 1px solid #4a90e2;
    color: #4a90e2;
    transition: all 0.3s ease;
}

.login-container .btn-secondary:hover {
    background: rgba(74, 144, 226, 0.1);
    transform: translateY(-2px);
}

.login-container .alert {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.floating-shapes {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

.shape {
    position: absolute;
    background: linear-gradient(45deg, rgba(74,144,226,0.1), rgba(74,144,226,0.05));
    border-radius: 50%;
}

.shape:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
}

.shape:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-card {
        margin-bottom: 1rem;
    }
    
    .table td .text-truncate {
        max-width: 100px;
    }
} 