/* style.css - Custom styling for login and dashboard */

body {
    background-color: #f4f7f6;
    font-family: 'Inter', sans-serif;
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(10,50,35,0.95), rgba(5,25,17,0.98)), url('assets/img/bg/bg-14.webp') no-repeat center center/cover;
}

.login-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    overflow: hidden;
    width: 100%;
    max-width: 450px;
    padding: 40px;
    position: relative;
}
.text-center .login-logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    padding: 10px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border: 2px solid #f1f1f1;
}

.login-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    color: #0a3223;
    margin-bottom: 5px;
}

.login-subtitle {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 30px;
}

.form-floating > .form-control:focus {
    border-color: #ff7043;
    box-shadow: 0 0 0 0.25rem rgba(255, 112, 67, 0.25);
}

.btn-login {
    background: #0a3223;
    border: none;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(10, 50, 35, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #ff7043, #d84315);
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.btn-login:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 112, 67, 0.4);
}

.btn-login:hover::before {
    opacity: 1;
}

.btn-login:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 5px 15px rgba(255, 112, 67, 0.3);
}

.spinner-border {
    display: none;
    width: 1.2rem;
    height: 1.2rem;
    border-width: 0.2em;
}

.alert-message {
    display: none;
    font-size: 14px;
    margin-top: 15px;
}

/* Dashboard Styles */
/* Logout Button */
.btn-logout {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    backdrop-filter: blur(5px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.btn-logout:hover {
    background: #ff7043;
    color: white;
    border-color: #ff7043;
    box-shadow: 0 5px 15px rgba(255, 112, 67, 0.4);
    transform: translateY(-2px);
}

.btn-logout i {
    transition: transform 0.3s ease;
}

.btn-logout:hover i {
    transform: translateX(3px);
}

.dashboard-navbar {
    background: #0a3223;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dashboard-brand {
    color: white;
    font-weight: 700;
    font-size: 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.dashboard-brand img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.dashboard-header {
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    padding: 40px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(0,0,0,0.02);
}

.welcome-text {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.user-role {
    font-size: 14px;
    color: #ff7043;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-label, .card-value, .card-icon, .text-muted {
    transition: all 0.3s ease;
}

.info-card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
    padding: 30px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(10, 50, 35, 0.25);
    border-color: #0a3223;
    background-color: #0a3223;
}

.info-card:hover .card-label {
    color: rgba(255, 255, 255, 0.7);
}

.info-card:hover .card-value {
    color: white;
}

.info-card:hover .card-icon {
    background-color: rgba(255, 112, 67, 0.2);
    color: #ff7043;
}

.info-card:hover .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 112, 67, 0.1);
    color: #ff7043;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.card-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #adb5bd;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.card-value {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    word-break: break-word;
}

.loan-amount-card {
    background: linear-gradient(135deg, #0a3223, #154c36);
    color: white;
    box-shadow: 0 10px 30px rgba(10, 50, 35, 0.2);
}

.loan-amount-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #ff7043, #d84315);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.loan-amount-card:hover::before {
    opacity: 1;
}

.loan-amount-card:hover {
    box-shadow: 0 15px 35px rgba(255, 112, 67, 0.3);
}

.loan-amount-card::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 112, 67, 0.2) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

.loan-amount-card .card-icon {
    background: rgba(255,255,255,0.1);
    color: white;
}

.loan-amount-card .card-label {
    color: rgba(255,255,255,0.7);
}

.loan-amount-card .card-value {
    color: white;
    font-size: 32px;
}
