/* Modal Custom */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.custom-modal {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.custom-modal-overlay.show .custom-modal {
    transform: translateY(0);
}

.custom-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--c-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--c-bg);
    border-radius: 8px 8px 0 0;
}

.custom-modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--c-ink);
}

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

.custom-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--c-border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background-color: var(--c-bg);
    border-radius: 0 0 8px 8px;
}

/* Button Styles */
.custom-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 80px;
}

.custom-btn-primary {
    background-color: var(--c-primary);
    color: white;
}

.custom-btn-primary:hover {
    background-color: var(--c-primary-dark);
    transform: translateY(-1px);
}

.custom-btn-secondary {
    background-color: #6c757d;
    color: white;
}

.custom-btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

.custom-btn-danger {
    background-color: var(--c-danger);
    color: white;
}

.custom-btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-1px);
}

.icon-success {
    color: var(--c-accent);
}

.icon-error {
    color: var(--c-danger);
}

.icon-warning {
    color: #ffc107;
}

/* Notification Toast */
.custom-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 15px 20px;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
}

.custom-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.custom-toast.success {
    border-left: 4px solid var(--c-accent);
    background-color: #f8fff9;
}

.custom-toast.error {
    border-left: 4px solid var(--c-danger);
    background-color: #fff8f8;
}

.custom-toast.info {
    border-left: 4px solid var(--c-primary);
    background-color: #f8fcff;
}

.custom-toast.warning {
    border-left: 4px solid #ffc107;
    background-color: #fffdf5;
}

.custom-toast-icon {
    font-size: 1.8rem;
    font-weight: bold;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.custom-toast.success .custom-toast-icon {
    background-color: var(--c-accent);
    color: white;
}

.custom-toast.error .custom-toast-icon {
    background-color: var(--c-danger);
    color: white;
}

.custom-toast-content {
    flex-grow: 1;
}

.custom-toast-title {
    margin: 0 0 5px 0;
    font-weight: bold;
    font-size: 1rem;
    color: var(--c-ink);
}

.custom-toast-message {
    margin: 0;
    font-size: 0.9rem;
    color: var(--c-text);
    line-height: 1.4;
}

.custom-toast-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.custom-toast-close:hover {
    background-color: #f0f0f0;
    color: var(--c-text);
}

/* Close button for modal */
.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background-color: #f0f0f0;
    color: var(--c-text);
}