/*
====================================================
Shraddha Finance - Professional CSS Stylesheet V3
====================================================
*/

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Roboto:wght@400;500&display=swap');

/* --- Root Variables --- */
:root {
    --primary-color: #0a7cff;
    --secondary-color: #00c6ff;
    --accent-color: #05dfa4;
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-accent: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a2e;
    --border-radius-md: 15px;
    --shadow-light: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* --- General Styling & Body --- */
body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.7;

    /* subtle animated bg */
    background-image: radial-gradient(circle at top left, rgba(0, 198, 255, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at bottom right, rgba(10, 124, 255, 0.1) 0%, transparent 50%);
    background-size: 200% 200%;
    animation: subtleBackground 60s linear infinite;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
}
h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; }
.lead { font-size: 1.1rem; font-weight: 400; }

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding: 8rem 0;
    color: var(--text-light);
    text-align: center;
    overflow: hidden;
    background: linear-gradient(45deg, #0061ff, #00c6ff, #05dfa4, #007bff);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

/* --- Navbar --- */
.navbar {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-logo {
    height: 40px;
    transition: all 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.navbar-sticky {
    transition: all 0.3s ease-in-out;
    background-color: #ffffff;
    box-shadow: var(--shadow-light);
}
.navbar-light .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
}
.navbar-light .nav-link:hover {
    color: var(--primary-color) !important;
    transform: scale(1.05);
}

/* --- Sidebar Styling --- */
#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: var(--bg-dark);
    color: var(--text-light);
    transition: all 0.3s;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    box-shadow: var(--shadow-light);
}
#sidebar .sidebar-header {
    padding: 20px;
    background: var(--primary-color);
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--text-light);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
#sidebar ul.components {
    padding: 0;
    margin: 0;
    list-style: none;
}
#sidebar ul li {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
#sidebar ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}
#sidebar ul li a:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateX(5px);
}
#sidebar.active {
    margin-left: -250px;
}

/* --- Content Layout --- */
#content {
    margin-left: 250px;
    padding: 20px;
    transition: all 0.3s;
}
#sidebar.active + #content {
    margin-left: 0;
}

/* --- Dashboard Cards --- */
.card-dashboard {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s ease-in-out;
    overflow: hidden;
    position: relative;
}
.card-dashboard:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.card-dashboard::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.card-dashboard:hover::before {
    opacity: 1;
}

/* --- Table Styling --- */
.table-responsive {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}
.table {
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.table th {
    background: #2d3748 !important;
    color: #fff !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}



.table td {
    vertical-align: middle;
}
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0,0,0,0.03);
}
.table-hover tbody tr:hover {
    background-color: rgba(0,0,0,0.075);
}

/* --- Status Badges --- */
.badge {
    padding: 6px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
}

/* --- Buttons --- */
.btn-gradient {
    background-image: var(--gradient-primary);
    border: none;
    color: var(--text-light);
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px 0 rgba(0, 125, 255, 0.4);
}
.btn-gradient:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px 0 rgba(0, 125, 255, 0.6);
    color: white;
}
.btn-sm {
    border-radius: 6px;
    font-size: 0.85rem;
    padding: 5px 10px;
}
.btn-success {
    background-color: #38a169 !important;
    border: none;
}
.btn-danger {
    background-color: #e53e3e !important;
    border: none;
}
.btn-outline-success {
    border-radius: 8px;
}

/* --- Forms --- */
.form-control, .form-select {
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}
.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 3px rgba(0, 125, 255, 0.25);
    border-color: var(--primary-color);
}

/* --- Animations --- */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes subtleBackground {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    .hero-section { padding: 6rem 0; }
    #sidebar { margin-left: -250px; }
    #sidebar.active { margin-left: 0; }
    #content { margin-left: 0; }
}

/* --- Footer --- */
.site-footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0;
    font-size: 0.9rem;
}

.footer-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-social .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 1.2rem;
    margin-right: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social .social-icon:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
}

.footer-contact li {
    margin-bottom: 0.75rem;
}

.footer-contact i {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 3px;
}

.site-footer .border-top {
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

.site-footer .text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}