/* ============================================
   Theme Primary Color
   ============================================ */
:root {
    --theme-primary: #0093FF;
    --theme-default: #0093FF;
}

.btn-primary,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-primary:not(:disabled):not(.disabled):active {
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
    color: #fff !important;
}
.btn-primary:hover {
    background-color: #0080e0 !important;
    border-color: #0080e0 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 147, 255, 0.3);
}
.btn-primary:focus,
.btn-primary:active:focus {
    box-shadow: none !important;
    outline: none !important;
}
.bg-primary {
    background-color: var(--theme-primary) !important;
}

/* Sidebar active + hover */
.page-wrapper .page-body-wrapper .sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-content-wrapper .simplebar-content > li .sidebar-link.active,
.page-wrapper .page-body-wrapper .sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-content-wrapper .simplebar-content > li:hover > a {
    color: var(--theme-primary) !important;
}
.page-wrapper .page-body-wrapper .sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-content-wrapper .simplebar-content > li .sidebar-link.active svg,
.page-wrapper .page-body-wrapper .sidebar-wrapper .sidebar-main .sidebar-links .simplebar-wrapper .simplebar-content-wrapper .simplebar-content > li:hover > a svg {
    stroke: var(--theme-primary) !important;
}

/* Selection highlight */
::selection {
    background-color: var(--theme-primary) !important;
    color: #fff !important;
}

/* Links & misc theme overrides */
a.text-primary, .text-primary {
    color: var(--theme-primary) !important;
}
.border-primary {
    border-color: var(--theme-primary) !important;
}
.form-check-input:checked {
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--theme-primary) !important;
    box-shadow: 0 0 0 3px rgba(0, 147, 255, 0.1) !important;
}

/* Nav tabs active/hover */
.nav-tabs .nav-link.active {
    color: var(--theme-primary) !important;
}
.nav-tabs .nav-link.active::after {
    background-color: var(--theme-primary) !important;
}
.nav-tabs .nav-link:hover::after {
    background-color: var(--theme-primary) !important;
}
.nav-tabs .nav-link:hover {
    color: var(--theme-primary) !important;
}

/* btn-outline-primary override */
.btn-outline-primary,
.btn-check + .btn-outline-primary {
    color: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
    background-color: transparent !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:active,
.btn-outline-primary.active,
.btn-check + .btn-outline-primary:hover,
.btn-check:checked + .btn-outline-primary,
.btn-check:active + .btn-outline-primary {
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
    color: #fff !important;
}

/* ============================================
   Pagination
   ============================================ */
.pagination-wrapper .pagination-wrapper-inner ul .page-item .page-link.active {
	z-index: 3;
	color: #ffffff;
	background-color: #0093FF;
	border-color: #0093FF;
}

.pagination-wrapper .pagination-wrapper-inner ul .page-item.active > .page-link {
	color: #ffffff;
    background-color: #0093FF;
	border-color: #0093FF;
}

.pagination-wrapper .pagination-wrapper-inner ul .page-item > .page-link {
	color: #0093FF;
}

.page-wrapper .page-body-wrapper .page-body {
	padding: 15px 15px 0 15px;
}
.mediafile {
    pointer-events: auto;
}
.mediafile {
    pointer-events: auto !important;
    z-index: 9999;
    position: relative;
}

.filter {
	background: #fff;
	padding: 0px 10px 20px 10px;
	border-radius: 12px;
}


.filter-card {
	background: #ffff;
	padding: 20px;
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.btn-purple {
    color: #6c757d;
    border: 1px solid #aaa;
}

.btn-purple:hover {
    background-color: #0093FF;
    color: white;
}

.btn-outline-purple {
    border: 1px solid #aaa;
    color: #6c757d;
}

.btn-outline-purple:hover {
    background-color: #0093FF;
    color: white;
}

.simple-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    border-top: 4px solid #0093FF;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: 100%;
}

.simple-card .card-title {
  font-size: 14px;
  color: #6c757d;
  margin-top: 0;
  margin-bottom: 12px;
}

.simple-card .card-value {
  font-size: 32px;
  font-weight: 700;
  color: #212529;
  margin: 0;
}


.accounter.error {
  margin-top: 2px;   /* bahut chhota gap */
  font-size: 13px;
  color: #e74c3c;
  display: block;
}

/* ============================================
   Common Styles
   ============================================ */

/* Utility */
.fw-500 {
    font-weight: 500;
}

/* Form Styles */
.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-control {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    height: auto;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #aaa;
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: none;
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-control.is-valid {
    border-color: #ddd;
    background-image: none;
}

.form-control.is-valid:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 16px;
    padding-right: 2.5rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-select:hover,
.form-select:focus,
.form-select:active,
.form-select:valid,
.form-select:invalid {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 16px !important;
}

/* Error Messages */
.error-message {
    font-size: 0.75rem;
    color: #dc3545;
    margin-top: 0.25rem;
    min-height: 0;
    overflow: hidden;
    transition: all 0.2s ease;
    opacity: 0;
    max-height: 0;
}

.error-message.show {
    opacity: 1;
    max-height: 20px;
    margin-top: 0.35rem;
}

.error-message::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
}

/* Button Styles */
.btn {
    border-radius: 8px;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: space-around;
}
.btn:focus,
.btn:active:focus,
.btn:active {
    box-shadow: none !important;
    outline: none !important;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled,
.btn-primary.disabled {
    background-color: #7ab8f0 !important;
    border-color: #7ab8f0 !important;
    color: #fff !important;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.btn-outline-secondary {
    border-color: #ddd;
    color: #666;
}

.btn-outline-secondary:hover {
    background: #f8f9fa;
    border-color: #ccc;
    color: #333;
}

.btn-icon {
    width: 16px;
    height: 16px;
}

.btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Toast Notification */
.alert-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   Add User Page Styles
   ============================================ */

/* Main Content */
.main{
    margin-left:260px;
    padding:30px;
}

/* Topbar */
.topbar{
    background:white;
    padding:15px 20px;
    border-radius:12px;
    box-shadow:0 2px 8px rgba(0,0,0,0.05);
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
}

.photo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.photo-wrapper {
    position: relative;
    display: inline-block;
}

.photo-overlay {
    position: absolute;
    bottom: 2px;
    right: -10px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.photo-overlay svg {
    width: 14px;
    height: 14px;
    color: #fff;
}

.photo-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    text-align: center;
    transition: color 0.2s ease;
}

.photo-label:hover {
    color: #0d6efd;
}

/* Password Toggle */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 2.75rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #888;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #333;
}

.password-toggle svg {
    width: 18px;
    height: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .edit-profile .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ============================================
   Settings Page Styles
   ============================================ */

/* Card Box */
.custom-card{
    background:white;
    padding:25px;
    border-radius:12px;
    box-shadow:0 3px 12px rgba(0,0,0,0.05);
}

.btn-purple{
    background: var(--theme-primary);
    color:white;
    border:none;
}

.btn-purple:hover{
    background:#0080e0;
    color:white;
}

/* Logo Upload Box */
.logo-upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    width: fit-content;
}

.logo-circle-wrapper {
    position: relative;
    display: inline-block;
}

.logo-remove-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #dc3545;
    border: 2px solid #fff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    z-index: 2;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.logo-remove-btn:hover {
    background: #b02a37;
}

.logo-remove-btn svg {
    width: 12px;
    height: 12px;
    stroke-width: 3;
}

.logo-preview-wrapper {
    width: 100px;
    height: 100px;
    border: 2px dashed #d0d0d0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.logo-preview-wrapper:hover {
    border-color: #0d6efd;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.1);
}

.logo-preview-wrapper.white-theme {
    background-color: #f8f9fa;
}

.logo-preview-wrapper.dark-theme {
    background-color: #1e1e2d;
}

.logo-preview-wrapper.dark-theme .logo-placeholder {
    color: #a0a0b0;
}

.logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: #888;
    font-size: 0.7rem;
    font-weight: 500;
}

.upload-icon {
    width: 20px;
    height: 20px;
}

.logo-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-theme-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Profile Dropdown */
.profile-dropdown {
    width: auto;
    min-width: 180px;
}

.profile-dropdown li a {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.profile-dropdown li span {
    font-size: 12px;
}

.profile-dropdown li svg {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
}

/* Leave Management Checkbox */
.leave-check {
    border-color: #555 !important;
}
