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

/* Full-width header at the top */
.header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgb(67, 67, 67); /* Material purple */
    color: white;
    padding: 15px 20px;
    font-size: 24px;
    font-weight: bold;
    height: 80px;
}

.header h1 {
    margin: 0;
}

.header a.btn {
    color: black;
    font-weight: 400;
    border: none;
    background-color: rgb(190, 190, 190);
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.header a.btn:hover {
    background-color: rgb(146, 146, 146);
}

/* Main container with sidebar and content area */
.main {
    display: flex;
    height: 100vh;
}

/* Sidebar styling for a Material-UI look */
.sidebar {
    width: 220px;
    background-color: transparent;
    color: #333;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 78px; /* adjust based on header height */
    height: calc(100% - 77px);

}

.sidebar h4 {
    color: #666;
    font-size: 18px;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #eee; /* Light divider for section headers */
    width: 100%;


}

/* Sidebar link styling */
.sidebar a {
    color: #333;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 5px;
    text-decoration: none;
    font-size: 16px;
    width: 100%;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sidebar a:hover {
    background-color: #f5f5f5;
    color: rgb(0, 162, 255);
    font-weight: 500;
}

.sidebar a.active {
    background-color: rgb(0, 162, 255);
    color: white;
    font-weight: 500;
}

/* Optional: Icon styling within sidebar links */
.sidebar a .icon {
    margin-right: 10px;
    font-size: 20px;
    color: inherit;
}

/* Content area styling */
.content {
    flex: 1;
    margin-left: 220px; /* sidebar width */
    padding: 25px;
    background-color: #f5f5f5;
    overflow-y: auto;
}

/* Login page container */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 80px);
    background-color: #f5f5f5;
}

/* Login card styling */
.login-card {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

.step h4{
    border-top: 1px solid #d4d4d4;
    padding-top: 15px;
    margin-bottom: 10px;
}
/* Button styling */
.btn-primary {
    background-color: #6200ea;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-primary.btn-sm,
.btn-secondary.btn-sm {
    padding: 3px 12px;        /* Consistent padding */
    font-size: 14px;          /* Standardize font size */
    line-height: 1.5;         /* Consistent line height */
    border-radius: 4px;       /* Rounded corners for a Material look */
}

/* Optional: Standardize icon spacing */
.btn-sm i {
    margin-right: 6px;        /* Add space between icon and text */
    font-size: 14px;          /* Match icon size to font size */
}

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

.btn-danger {
    background-color: #d32f2f;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn-danger:hover {
    background-color: #b71c1c;
}

/* Input fields with a Material-inspired outline */
.form-control {
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #6200ea;
    box-shadow: 0 0 0 2px rgba(98, 0, 234, 0.2);
}

/* Table styling */
.table {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.table thead {
    background-color: rgb(0, 162, 255);
    color: white;
}

.table th, .table td {
    padding: 12px 15px;
    text-align: left;
}

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

/* Progress bar styling */
.progress {
    background-color: #ddd;
    border-radius: 20px;
    overflow: hidden;
}

.progress-bar {
    background-color: #6200ea;
}

/* SweetAlert2 Modal Customization (optional) */
.swal2-popup {
    border-radius: 8px !important;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.swal2-confirm, .swal2-cancel {
    font-weight: bold !important;
    border-radius: 5px !important;
}

.swal2-confirm {
    background-color: #6200ea !important;
}

.swal2-cancel {
    background-color: #bbb !important;
}