:root {
    --primary-color: #2ecc71;
    /* --primary-color: #3498db; */
    --secondary-color: #2ecc71;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --ayuba: #f1f6f8;
}

#test{
    background-color: var(--ayuba);
    color: var(--primary-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
}

/* Login and Registration Styles */
.login-container, .registration-container {
    background-color: white;
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease-in-out;
    margin: 2rem auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo i {
    font-size: 3rem;
    color: var(--primary-color);
}

.logo h1 {
    color: var(--dark-color);
    margin-top: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 600;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

button {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.links {
    margin-top: 1.5rem;
    text-align: center;
}

.links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.links a:hover {
    text-decoration: underline;
}

.alert {
    padding: 0.8rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    font-weight: 600;
}

.alert-danger {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

/* Dashboard Styles */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.logo-image {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    gap: 0.5rem;
    max-width: 200px;
    width:100%;

}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background-color: var(--dark-color);
    color: white;
    transition: all 0.3s ease;
    position: fixed;
    height: 100vh;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-header h2 i {
    color: var(--secondary-color);
}

.sidebar-menu {
    padding: 1rem 0;
}

.menu-item {
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-item.active {
    background-color: var(--primary-color);
}

.menu-item i {
    width: 20px;
    text-align: center;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    padding: 1.5rem;
    margin-left: 250px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.logout-btn {
    background-color: var(--danger-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

.logout-btn:hover {
    background-color: #c0392b;
}

/* Dashboard Cards */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.card {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.card-icon.wallet {
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--secondary-color);
}

.card-icon.application {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
}

.card-icon.pending {
    background-color: rgba(243, 156, 18, 0.1);
    color: var(--warning-color);
}

.card-icon.approved {
    background-color: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.card-icon.users {
    background-color: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
}

.card-icon.pending-apps {
    background-color: rgba(243, 156, 18, 0.1);
    color: var(--warning-color);
}

.card-icon.credits {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
}

.card-icon.transactions {
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--secondary-color);
}

.card-title {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 600;
}

.card-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
}

/* Data Tables */
.data-table-container {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.status-pending {
    background-color: rgba(243, 156, 18, 0.1);
    color: var(--warning-color);
}

.status-approved {
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--secondary-color);
}

.status-rejected {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
}

.action-btn {
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 0.3rem;
    display: inline-block;
    text-decoration: none;
}

.action-btn.approve {
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--secondary-color);
}

.action-btn.reject {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
}

.action-btn.view {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
}

.action-btn.credit {
    background-color: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
}

/* Application Form Styles */
.application-form-container {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.form-title {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.form-title i {
    color: var(--primary-color);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .sidebar {
        width: 200px;
    }
    
    .main-content {
        margin-left: 200px;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .cards-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 576px) {
    .cards-container {
        grid-template-columns: 1fr;
    }
    
    .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .login-container, .registration-container {
        padding: 1.5rem;
    }
}