/* Custom styles goes here */

/* ==================================================
   BADGE STYLES
   ================================================== */

/* Badge status styles */
.badge-status {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.35rem 0.65rem;
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: inline-block;
    min-width: 100px;
    text-align: center;
}

    .badge-status.pending {
        background-color: #ffc107;
        color: #212529;
    }

    .badge-status.approved {
        background-color: #28a745;
        color: white;
    }

    .badge-status.rejected {
        background-color: #dc3545;
        color: white;
    }

/* Badge counter for notification numbers */
.badge-counter {
    position: absolute;
    transform: scale(0.7);
    transform-origin: top right;
    right: 0;
    margin-top: -10px;
}

/* ==================================================
   ICON STYLES
   ================================================== */

/* Ensure Remix Icons render properly */
[class^="ri-"], [class*=" ri-"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'remixicon' !important;
    font-size: inherit;
    line-height: 1;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fix for vertical alignment */
button i[class^="ri-"], button i[class*=" ri-"] {
    vertical-align: middle;
    margin-top: -2px;
    margin-bottom: -2px;
}

/* ==================================================
   MODAL STYLES 
   ================================================== */

/* Modal backdrop opacity */
.modal-backdrop.fade.show {
    opacity: 0.5;
}

/* Modal content styling */
.modal-content {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: none;
}

/* Modal header styling */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding: 1rem 1.5rem;
}

    .modal-header .modal-title {
        font-weight: 600;
        color: #495057;
    }

/* Modal body styling */
.modal-body {
    padding: 1.5rem;
}

/* Modal footer styling */
.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* ==================================================
   FORM STYLES 
   ================================================== */

/* Form label styling */
.form-group label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Form control styling */
.form-control {
    border: 1px solid #ced4da;
    border-radius: 5px;
    padding: 0.5rem 0.75rem;
    transition: border-color 0.15s ease-in-out;
}

    .form-control:focus {
        border-color: #80bdff;
        box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
    }

/* Hours info box styling */
.hours-info {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 0.5rem 0.75rem;
    border-left: 3px solid #17a2b8;
}

/* ==================================================
   BUTTON STYLES 
   ================================================== */

/* Primary button styling */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0,123,255,0.3);
}

    .btn-primary:hover {
        background-color: #0069d9;
        border-color: #0062cc;
        box-shadow: 0 2px 6px rgba(0,123,255,0.4);
    }

/* Secondary button styling */
.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    box-shadow: 0 2px 4px rgba(108,117,125,0.3);
}

    .btn-secondary:hover {
        background-color: #5a6268;
        border-color: #545b62;
        box-shadow: 0 2px 6px rgba(108,117,125,0.4);
    }

/* Button group styling for signer controls */
.btn-move-up, .btn-move-down, .btn-remove-signer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
}

/* ==================================================
   SELECT2 STYLES 
   ================================================== */

/* Select2 container fixes */
.select2-container {
    z-index: 9999;
    width: 100% !important;
}

.select2-container--default .select2-selection--multiple {
    min-height: 38px;
}

.notification-prompt {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 999999;
    max-width: 400px;
    display: none;
    border: 1px solid #e0e0e0;
}

    .notification-prompt.show {
        display: block !important;
        animation: slideIn 0.3s ease-out;
    }

.notification-prompt-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.notification-prompt-icon {
    color: #ff9800;
    margin-right: 8px;
    font-size: 24px;
}

.notification-prompt-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    flex-grow: 1;
    margin: 0;
}

.notification-prompt-close {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    font-size: 18px;
    line-height: 1;
}

.notification-prompt-content {
    color: #666;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.notification-prompt-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.notification-prompt-button {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s;
}

.notification-prompt-allow {
    background-color: #4CAF50;
    color: white;
}

    .notification-prompt-allow:hover {
        background-color: #45a049;
    }

.notification-prompt-deny {
    background-color: #f5f5f5;
    color: #666;
}

    .notification-prompt-deny:hover {
        background-color: #e0e0e0;
    }

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}
