/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

/* Sidebar Styling */
.sidebar {
    background-color: #2c3e50;
    color: #ecf0f1;
    width: 210px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);

}

.sidebar a {
    color: #ecf0f1;
    text-decoration: none;
    margin: 10px 0;
    padding: 10px;
    display: block;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.sidebar a:hover {
    background-color: #34495e;
}

/* Header Styling */
header {
    background-color: #3498db;
    color: #fff;
    padding: 15px 20px;
    text-align: center;
    margin-left: 210px; /* Offset for sidebar */
}

/* Content Area */
.content {
    margin-left: 225px; /* Same width as the sidebar */
    padding: 20px; /* Add spacing inside the content area */
    min-height: calc(100vh - 60px); /* Ensure it doesn't overlap the footer */
    font-family: Arial, sans-serif;

}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table th,
table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

table th {
    background-color: #3498db;
    color: white;
}

table tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    header {
        margin-left: 0;
    }

    .content {
        margin-left: 0;
    }
}

/* Sidebar container */
/* Sidebar container */


/* Sidebar menu styling */
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 15px;
}

.sidebar-menu li a {
    text-decoration: none;
    color: #ecf0f1; /* Light text */
    padding: 10px 20px;
    display: block;
    border-radius: 4px; /* Rounded corners */
    transition: background-color 0.3s ease;
}

/* Hover and active states */
.sidebar-menu li a:hover {
    background-color: #34495e; /* Slightly darker shade */
}

.sidebar-menu li a.active {
    background-color: #1abc9c; /* Highlighted active link */
    color: #ffffff;
}

/* Footer */
footer {
    margin-left: 210px; /* Align footer with the content */
    background-color: #34495e;
    color: #ecf0f1;
    text-align: center;
    padding: 10px 0;
    position: relative; /* Prevent overlap */
    bottom: 0;
    width: calc(100% - 210px); /* Adjust width to avoid overlap with sidebar */
}

/* Dashboard grid container */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Always 2 columns for 2x2 grid */
    gap: 20px; /* Space between boxes */
    margin-top: 20px; /* Space below the heading */
    max-width: 1200px; /* Maximum width to prevent boxes from becoming too wide */
    margin-left: auto;
    margin-right: auto;
}

/* Individual dashboard box */
.dashboard-box {
    background-color: #068ee9; /* Blue background */
    color: #fff; /* White text */
    padding: 20px;
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-box h2 {
    margin-bottom: 10px;
    font-size: 18px;
}

.dashboard-box p {
    font-size: 24px;
    font-weight: bold;
}

/* Hover effect for dashboard boxes */
.dashboard-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}


h1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}


.add-card-btn {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-left: 15px;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.2s ease-in-out;
    border: 1px solid #007bff;
}

/* Bank section styling */
.bank-logo {
    width: 60px;
    height: auto;
    margin-right: 10px;
    border-radius: 5px;
    background: #fff;
    border: 2px solid #eee;
    object-fit: cover;

    /*height: 60px;*/
    /*object-fit: contain;  Maintain aspect ratio */
    /*border-radius: 50%;  Optional: make the logo circular */

}

/* Table styling */
.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.styled-table th,
.styled-table td {
    border: 1px solid #dddddd;
    text-align: left;
    padding: 8px;
}

.styled-table th {
    background-color: #0056b3;
    font-weight: bold;
}

.styled-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.styled-table tr:hover {
    background-color: #f1f1f1;
}

/* Align the page header and button */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Title styling */
.page-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

/* Button styling */
.page-header .btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    border: none;
    text-align: center;
    cursor: pointer;
}

/* Hover effect for button */
.page-header .btn:hover {
    background-color: #0056b3;
}

/* Form Container */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

    margin-top: 20px;
    border: 1px solid #ccc;
    display: flex; 
    flex-direction: column; 
    gap: 15px;
}

/* Form Group */
.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Labels */
.form-group label {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Inputs and Selects */
.form-group input,
.form-group select {
    padding: 8px;
    
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    
    font-size: 1rem;
}

.form-group small{
    font-size: 0.7rem; 
    color: #6c757d;
}


/* Form Actions (Buttons) */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;

    gap: 10px;
    
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
    border: none;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Card Grid List */


/* Bank Card as a Row */
.bank-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: box-shadow 0.2s ease-in-out;
}

.bank-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Bank Logo and Info */
.bank-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.add-card-btn:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/*for bank card*/
.bank-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bank-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    cursor: pointer;
    text-align: left; /* Align content to the left */
}

.bank-card:hover {
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.bank-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* Ensure full width for proper alignment */
}

.bank-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-grow: 1; /* Take up remaining space for alignment */
}

.bank-info h2 {
    margin: 0;
    font-size: 1.2em;
    font-weight: bold;
}

.bank-info p {
    margin: 5px 0 0;
    font-size: 0.9em;
    color: #555;
    align-items: left;
}

.expand-icon {
    cursor: pointer;
    text-align: right; 
    font-size: 14px;
    color: #007bff;
    margin-top: 10px;
    transition: color 0.3s ease;
    display: inline-block;
}

.bank-details {
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #007bff;
    display: none;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}

.btn:hover {
    background-color: #0056b3;
}

.btn-icon {
    display: inline-block;
    padding: 6px;
    border: none;
    background-color: transparent;
    color: #007bff;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s ease;
    text-decoration: none;
}

.btn-icon:hover {
    color: #0056b3;
}

.btn-icon .fa-file-text {
    color: #007bff; /* Blue color for the icon */
    font-size: 18px;
    transition: color 0.2s ease-in-out;
}

.btn-icon .fa-file-text:hover {
    color: #0056b3; /* Darker blue on hover */
}

.form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}


.form-control {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* ============================
   Cards Section Styling
============================ */


.bank-card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bank-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.bank-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}


.bank-header h2 {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.bank-card {
    display: flex;
    align-items: center; /* Center content vertically */
    justify-content: space-between; /* Space out items horizontally */
    border: 1px solid #ccc; /* Border for card */
    border-radius: 8px; /* Rounded corners */
    padding: 20px;
    width: 100%; /* Make card span full width */
    max-width: 100%; /* Prevent overflow */
    box-sizing: border-box; /* Ensure padding doesn't affect width */
    background-color: #fff; /* Optional background color */
}

.bank-header {
    display: flex;
    align-items: center; /* Center logo and text vertically */
    gap: 10px; /* Spacing between logo and text */
}


