/* 
 * 1NailSystem Modern UI Standards
 * Centralized styles for forms, notifications, and high-end ergonomics.
 */

/* --- Table Actions (Edit/Delete) --- */
.actions-column {
    width: 5%;
    white-space: nowrap;
}

.btn-action {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    transition: all 0.2s ease;
}

.btn-action-edit {
    background-color: transparent !important;
    color: #72d4d4 !important;
    border: none;
}

.btn-action-edit:hover {
    background-color: #72d4d4 !important;
    color: white !important;
    box-shadow: 0 4px 8px rgba(114, 212, 212, 0.3);
    transform: translateY(-1px);
}

.btn-action-delete {
    background-color: transparent !important;
    color: rgba(231, 74, 59, 0.55) !important;
    border: none;
}

.btn-action-delete:hover {
    background-color: #e74a3b !important;
    color: white !important;
    box-shadow: 0 4px 8px rgba(231, 74, 59, 0.3);
    transform: translateY(-1px);
}

/* Prevent Bootstrap tooltips from intercepting mouse events (avoids hover flicker on small buttons) */
.tooltip {
    pointer-events: none;
}

/* --- Modernized Modals --- */
.modal-modern .modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.modal-modern .modal-header {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    padding: 1.5rem;
}

.modal-modern .modal-footer {
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    background-color: #f8f9fc;
}

.modal-confirm-delete .modal-header {
    background-color: #fff;
    color: #444;
    border-bottom: 1px solid #f1f1f1;
}

.modal-confirm-delete .modal-title {
    color: #e74a3b;
    font-weight: 700;
}

.modal-confirm-delete .close {
    color: #aaa;
    text-shadow: none;
    opacity: 0.5;
}

.modal-confirm-delete .close:hover {
    opacity: 1;
}

/* --- Notifications (Ghost Toasts) --- */
#content-wrapper {
    position: relative;
}

.message {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: auto;
    min-width: 320px;
    pointer-events: none;
}

.success-toast, .failure-toast {
    padding: 10px 20px;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    pointer-events: auto;
    text-shadow: 0px 0px 10px rgba(255,255,255,0.8);
    transition: opacity 1s ease;
}

.success-toast { color: #28a745; }
.failure-toast { color: #dc3545; }

.success-toast i, .failure-toast i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.error-feedback {
    color: #e74a3b;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* --- Modern Form Ergonomics --- */
form {
    box-shadow: none !important;
    border: none !important;
}

.form-label {
    font-weight: 600;
    color: #444;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.form-control, .form-select {
    padding: 0.6rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease-in-out;
    min-height: 2.8rem;
    line-height: 1.2;
    background-color: #fff;
}

.form-control:focus, .form-select:focus {
    border-color: #72d4d4;
    box-shadow: 0 0 0 0.25rem rgba(114, 212, 212, 0.15);
    outline: 0;
}

/* Redesigned Select Arrow */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
}

/* --- Visual Cues --- */
.required-star {
    color: #dc3545;
    font-weight: bold;
    margin-left: 2px;
}

.optional-tag {
    font-weight: 500;
    font-style: italic;
    opacity: 0.7;
    font-size: 0.85rem;
    color: #6c757d;
}

.section-dot {
    width: 10px;
    height: 10px;
    background-color: #72d4d4 !important;
    box-shadow: 0 0 8px rgba(114, 212, 212, 0.5);
}

/* --- Mode Distinctions (View/Edit) --- */
.mode-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.view-badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.edit-badge {
    background-color: #fff;
    color: #72d4d4;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Transitions for toggleable forms */
.form-control[readonly], .form-select[disabled] {
    background-color: #f8f9fc !important;
    border-color: transparent !important;
    cursor: default;
    box-shadow: none !important;
}

.edit-mode-active .form-control, .edit-mode-active .form-select {
    border-color: #72d4d4 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 0.2rem rgba(114, 212, 212, 0.1) !important;
}

/* --- Premium Card Layouts --- */
.card-header {
    background-color: #72d4d4 !important;
    padding: 1rem 1.5rem !important;
    border-bottom: none !important;
}

.card-header h1, .card-header h2, .card-header h3, .card-header h4, .card-header h5, .card-header h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600 !important;
    margin-bottom: 0 !important;
}

/* --- Buttons --- */
.btn-premium, .submitBtn, .functionBtn {
    background-color: #72d4d4 !important;
    border: none !important;
    font-weight: 600 !important;
    border-radius: 50px !important; /* Unified rounded-pill shape */
    padding: 0.75rem 2rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    color: white !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(114, 212, 212, 0.2) !important;
    text-shadow: none !important;
    font-family: 'Nunito', sans-serif !important;
}

.btn-premium:hover, .submitBtn:hover, .functionBtn:hover {
    background-color: #61b5b5 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 15px rgba(114, 212, 212, 0.4) !important;
    color: white !important;
    text-decoration: none !important;
}

.btn-header-premium {
    background-color: #ffffff !important;
    border: 1px solid #ffffff !important;
    color: #72d4d4 !important;
    font-weight: 700 !important;
    border-radius: 50px !important; /* Force rounded-pill shape */
    padding: 0.4rem 1.5rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-size: 0.85rem !important;
    display: inline-flex !important;
    align-items: center !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    font-family: 'Nunito', sans-serif !important;
}

.btn-header-premium:hover {
    background-color: #f8f9fa !important;
    color: #5ab1b1 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15) !important;
    text-decoration: none !important;
}

.btn-header-premium i {
    font-size: 0.9rem;
}

.btn-premium-submit {
    min-width: 15.625rem; /* 250px equivalent */
}

/* --- Modernized Tables --- */
.table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.table thead th {
    vertical-align: middle !important;
    padding: 1.25rem 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.75rem;
    border: none !important;
}

.table tbody td {
    vertical-align: middle !important;
    padding: 1rem 0.75rem !important;
    border-bottom: 1px solid #f1f1f1 !important;
    color: #555;
    font-size: 0.9rem;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(114, 212, 212, 0.02) !important;
}

.table-striped tbody tr:hover {
    background-color: rgba(114, 212, 212, 0.05) !important;
}

/* --- Global Body & Page Layout Utilities --- */
body.premium-layout {
    font-family: 'Playfair Display', serif;
    background-color: #f8f9fc;
}

.modern-container-lg {
    max-width: 56.25rem; /* 900px */
    margin: 2rem auto;
}

.modern-container-md {
    max-width: 50rem; /* 800px */
    margin: 4rem auto;
}

.modern-container-sm {
    max-width: 37.5rem; /* 600px */
    margin: 3rem auto;
}

/* Mobile Adjustments for Page Containers */
@media only screen and (max-width: 48rem) {
    .modern-container-lg, .modern-container-md, .modern-container-sm {
        margin: 4rem 1rem 2rem 1rem;
    }
}

/* --- Form Input Modifications --- */
textarea.form-control-noresize {
    resize: none;
}

textarea.form-control-lg {
    min-height: 12.5rem; /* 200px */
}

/* --- Form Field Details --- */
.lead-text {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
    font-family: 'Roboto', sans-serif;
}

/* --- Buttons --- */
.btn-premium-wide {
    min-width: 17.5rem; /* 280px */
}

.modern-button-group {
    display: flex;
    gap: 0.625rem; /* 10px */
    justify-content: flex-end;
    margin-top: 2rem;
}
.home-mobile-nav-item {
    position: relative !important;
    z-index: 1000;
    display: block;
    margin-left: 2rem;
}
@media (min-width: 1025px) {
    .home-mobile-nav-item {
        display: none !important;
    }
}

