<?php
// src/webroot/css/modals.css v1.0
?>
/*
 * webroot/css/modals.css
 * This stylesheet provides modern, consistent styling for standard Bootstrap modals,
 * overriding default styles to match the application's aesthetic.
 */

/* Modal Backdrop */
.modal {
    background-color: rgba(17, 24, 39, 0.6); /* Tailwind Gray-900 at 60% opacity */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Modal Dialog & Content Shape */
.modal-dialog {
    max-width: 550px;
    margin: 1.75rem auto;
}

.modal-content {
    border-radius: 0.75rem; /* Slightly larger radius */
    border: none;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    background-color: #f9fafb; /* Gray-50 */
}

/* Modal Header */
.modal-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb; /* Gray-200 */
    padding: 1rem 1.5rem;
    align-items: center;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}

.modal-title {
    font-weight: 600;
    font-size: 1.125rem;
    color: #1f2937; /* Gray-800 */
}

/* Modal Close Button */
.modal-header .close {
    padding: 1rem;
    margin: -1rem -1rem -1rem auto;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #9ca3af; /* Gray-400 */
    text-shadow: none;
    opacity: 1;
    background-color: transparent;
    border: 0;
    transition: color 0.15s ease-in-out;
}
.modal-header .close:hover {
    color: #1f2937; /* Gray-800 */
}

/* Modal Body & Footer */
.modal-body {
    padding: 1.5rem;
    font-size: 1rem;
    color: #4b5563; /* Gray-600 */
}
.modal-body .form-group {
    margin-bottom: 1.25rem;
}
.modal-body hr {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
}

.modal-footer {
    background-color: #f9fafb; /* Gray-50 */
    border-top: 1px solid #e5e7eb; /* Gray-200 */
    padding: 1rem;
    display: flex;
    justify-content: flex-end;
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
}

/* Modal Buttons */
.modal-footer .btn {
    border-radius: 0.375rem;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s;
    border: 1px solid transparent;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.modal-footer .btn-secondary {
    background-color: #ffffff;
    color: #374151; /* Gray-700 */
    border-color: #d1d5db; /* Gray-300 */
}
.modal-footer .btn-secondary:hover {
    background-color: #f3f4f6; /* Gray-100 */
    border-color: #9ca3af; /* Gray-400 */
}

.modal-footer .btn-primary {
    background-color: #f59e0b; /* Amber-500 */
    color: #ffffff;
    border-color: #f59e0b;
}
.modal-footer .btn-primary:hover {
    background-color: #d97706; /* Amber-600 */
    border-color: #d97706;
}