


/* Toast message css */
.toast-success {
    background-color: #28a745 !important; /* Dark Green */
    color: white !important;
}
.toast-top-right {
    top: 100px !important; /* Default 12px hota hai, isko increase kar diya */
}

/* Sidebar and header responsive css */

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

body {
    display: flex;
    min-height: 100vh;
    background: #f4f6f8;
    line-height: unset !important;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: #ffffff;
    color: #000000;
    height: 100vh;
    position: fixed;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.logo-wrapper {
    padding: 0;
    width: 100%;
    height: 69px;
    text-align: center;
    background: #ffffff;
    position: sticky; /* Sticks the logo at the top */
    top: 0;
    z-index: 100;
}

.sidebar div {
    text-align: center;
    padding: 30px;
    background: #ffffff;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1; /* Takes remaining space */
    overflow-y: auto; /* Enables scrolling */
    max-height: calc(100vh - 69px); /* Prevents full sidebar from scrolling */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #ccc #fff; /* Firefox */
    margin-top: 10px;
}

.sidebar ul::-webkit-scrollbar {
    width: 6px;
}

.sidebar ul::-webkit-scrollbar-track {
    background: #fff;
}

.sidebar ul::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.sidebar ul li {
    padding: 1rem;
    cursor: pointer;
    margin-left: 15px;
    margin-right: 15px;
    padding-left: 20px;
    margin-top: 10px;
}

.sidebar li a {
    word-break: break-word;
    overflow-wrap: break-word;
}

.sidebar ul li:hover {
    background: linear-gradient(271deg, #ff9a01, #ffd79a);
    border-radius: 10px
}

/* Main content */
.main-content {
    margin-left: 250px;
    width: 100%;
    transition: all 0.3s ease;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header h1 {
    font-size: 1.5rem;
    color: #2c3e50;
}

.header-right {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.header-right span {
    margin-right: 1rem;
    font-weight: bold;
    color: #2c3e50;
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem;
}

.card {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    word-wrap: break-word; /* Older support */
    overflow-wrap: break-word; /* Modern browsers */
}

.card h3 {
    margin-bottom: 0.5rem;
    color: #e9910d;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Toggle btn */
.toggle-btn {
    font-size: 1.5rem;
    color: #2c3e50;
    cursor: pointer;
    display: none;
}

.sidebar ul li.active {
    /* background: #ffdfae9e; */
    border-radius: 10px;
    background: linear-gradient(271deg, #ff9a01, #ffd79a);
}

/* Responsive */
@media(max-width: 768px) {
    .sidebar {
        width: 0;
        overflow: hidden;
    }
    .main-content {
        margin-left: 0;
    }
    .toggle-btn {
        display: block;
    }
}

.language-dropdown .dropdown-menu a:hover {
    background-color: #f5f5f5;
}

.dropdown-menu a:hover {
    background: linear-gradient(271deg, #ff9a01, #ffd79a);
    border-radius: 4px;
}
.dropdown-menu div:hover {
    background: linear-gradient(271deg, #ff9a01, #ffd79a);
    border-radius: 4px;
}
.dropdown-menu {
    --bs-dropdown-padding-x: unset !important;
}

/* user list page css */

 /* Table Styling */
 .custom-table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}
.custom-table thead {
    background: #343a40;
    color: #fff;
}
.custom-table thead th {
    padding: 12px;
    text-align: center;
}
.custom-table tbody tr:hover {
    background: #f8f9fa;
    transition: 0.3s;
}
.custom-table td {
    vertical-align: middle;
    text-align: center;
}
/* Button Styling */
.btn-custom {
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 14px;
}
.btn-edit {
    background: #007bff;
    color: #fff;
}
.btn-delete {
    background: #dc3545;
    color: #fff;
}
.btn-edit:hover {
    background: #0056b3;
}
.btn-delete:hover {
    background: #b02a37;
}

/* delete popup css */
.custom-modal {
    border-radius: 20px;
    border: none;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
}

.custom-modal .modal-header {
    border-bottom: none;
    padding-top: 25px;
    padding-bottom: 10px;
    justify-content: center;
}

.custom-modal .modal-title {
    font-weight: 600;
}

.custom-modal .modal-body {
    padding: 20px 40px;
}

.custom-modal .modal-footer {
    border-top: none;
    padding-bottom: 25px;
}

/* form css */

.form-container {
    max-width: 500px;
    margin: 80px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
    color: #333;
}

/* Form Group */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
}

.form-group select,
.form-group input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus {
    border-color: #4CAF50;
    outline: none;
}
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input[type="password"]:focus {
    border-color: #4CAF50;
    outline: none;
}
.form-group input[type="file"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input[type="file"]:focus {
    border-color: #4CAF50;
    outline: none;
}

/* Submit Button */
.form-group button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(271deg, #ff9a01, #ffd79a);
    border: none;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-group button:hover {
    background-color: #45a049;
}

.form-group span {
    display: block;
    margin-top: 5px;
    color: #e74c3c;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 600px) {
    .form-container {
        margin: 40px 20px;
        padding: 20px;
    }

    .form-container h2 {
        font-size: 20px;
    }
}

/* Password hide unhide css */

.input-wrapper {
    position: relative;
}
.input-wrapper input {
    width: 100%;
    padding-right: 40px; /* icon ke liye space */
}
.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
}

img, svg {
    vertical-align: unset !important;
}


/* pagination css */
#pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    margin-top: 15px;
}

.page-item {
    list-style: none;
}

.page-link {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    background-color: white;
    color: #333;
    transition: background 0.3s ease;
}

.page-link:hover {
    background-color: #f0f0f0;
}

.page-item.active .page-link {
    background: linear-gradient(271deg, #ff9a01, #ffd79a);
    color: white;
    border: none;
}

@media (max-width: 576px) {
    #pagination {
        justify-content: center;
        gap: 4px;
    }
    .page-link {
        font-size: 14px;
        padding: 4px 8px;
    }
}