/* ==========================================================================
   Redesign_Members.css
   Consolidated styles for member pages
   ========================================================================== */

/* ==========================================================================
   Hero Section Styles
   ========================================================================== */
.hero-section .hero-background {
    position: relative;
}

.hero-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-section .card-body {
    z-index: 2;
}

/* MyMessages Add-specific hero styling */
.members-mymessages-add .hero-section .card-body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

/* MyMessages Modify-specific hero styling */
.members-mymessages-modify .hero-section .card-body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

/* MyMessages Delete-specific hero styling */
.members-mymessages-delete .hero-section .card-body {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%) !important;
}

/* MyVault Modify-specific hero styling */
.members-myvault-modify .hero-section .card-body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.6);
    line-height: 1.2;
}

.hero-title i {
    color: #008AA0;
    filter: drop-shadow(1px 1px 3px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

/* Delete page specific hero icon color */
.members-mymessages-delete .hero-title i {
    color: #dc3545 !important;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: #2c3e50;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8), 0 0 8px rgba(255, 255, 255, 0.5);
}

.hero-description {
    font-size: 1.125rem;
    font-weight: 400;
    color: #1a1a1a;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8), 0 0 8px rgba(255, 255, 255, 0.4);
    line-height: 1.5;
}

.hero-features .feature-item {
    display: flex;
    align-items: center;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.85);
    padding: 12px 16px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.hero-features .feature-item i {
    color: #008AA0;
    font-size: 1rem;
    filter: drop-shadow(1px 1px 2px rgba(255, 255, 255, 0.6));
}

.hero-icon i {
    font-size: 4rem;
    color: #008AA0;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
    opacity: 0.9;
}

/* ==========================================================================
   Shared File Upload and Drag & Drop Styles
   ========================================================================== */
/* Keyframe animations used by both MyMessages and MyVault */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Character counter styling - shared by both pages */
.character-counter {
    font-size: 0.875rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s ease-in-out;
}

.character-counter input[readonly] {
    background: transparent !important;
    border: none !important;
    font-size: inherit;
    color: inherit;
    padding: 0;
    width: auto;
    min-width: 3rem;
    text-align: center;
}

/* Enhanced file upload section - shared styling */
.file-upload-section {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.file-upload-section:hover {
    border-color: #008AA0;
    background-color: rgba(0, 138, 160, 0.05);
}

.file-upload-section.drag-over {
    border-color: #008AA0;
    background-color: rgba(0, 138, 160, 0.1);
    transform: scale(1.02);
}

.file-upload-section .upload-error {
    margin-top: 15px;
    text-align: left;
}

.file-upload-section .file-info {
    animation: fadeInUp 0.3s ease-out;
}

.upload-error {
    animation: shake 0.5s ease-in-out;
}

.file-upload-section .btn {
    pointer-events: auto;
}

.file-upload-input {
    cursor: pointer !important;
}

/* File info display during upload process */
.file-info {
    border: 1px solid #e9ecef !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    animation: fadeIn 0.3s ease;
}

/* Attachment preview area */
.attachment-preview {
    max-height: 400px;
    overflow-y: auto;
}

/* ==========================================================================
   MyMessages Add Page Specific Styles
   ========================================================================== */
/* Adjust character counter for MyMessages (smaller font for longer messages) */
.members-mymessages-add .character-counter {
    font-size: 0.75rem;
}

/* Alternative file upload styling for MyMessages */
.members-mymessages-add .file-upload-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem 1.5rem;
}

.members-mymessages-add .file-upload-section.drag-over {
    border-color: #198754;
    background-color: rgba(25, 135, 84, 0.1);
}

/* ==========================================================================
   MyMessages Modify Page Specific Styles
   ========================================================================== */
/* Adjust character counter for MyMessages Modify (smaller font for longer messages) */
.members-mymessages-modify .character-counter {
    font-size: 0.75rem;
}

/* Alternative file upload styling for MyMessages Modify */
.members-mymessages-modify .file-upload-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem 1.5rem;
}

.members-mymessages-modify .file-upload-section.drag-over {
    border-color: #198754;
    background-color: rgba(25, 135, 84, 0.1);
}

/* Enhanced card borders for MyMessages Modify */
.members-mymessages-modify .card.shadow-sm {
    border: 1px solid #adb5bd !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08) !important;
}

/* ==========================================================================
   MyVault Modify Page Specific Styles
   ========================================================================== */
/* MyVault Modify uses standard character counter size for shorter notes */
.members-myvault-modify .character-counter {
    font-size: 0.875rem;
}

/* Alternative file upload styling for MyVault Modify */
.members-myvault-modify .file-upload-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem 1.5rem;
}

.members-myvault-modify .file-upload-section:hover {
    border-color: #6610f2;
    background-color: rgba(102, 16, 242, 0.05);
}

.members-myvault-modify .file-upload-section.drag-over {
    border-color: #6610f2;
    background-color: rgba(102, 16, 242, 0.1);
}

/* Enhanced card borders for MyVault Modify */
.members-myvault-modify .card.shadow-sm {
    border: 1px solid #adb5bd !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08) !important;
}

/* MyVault specific card header styling */
.members-myvault-modify .card-header {
    background: linear-gradient(135deg, #6610f2, #520dc2) !important;
    border-bottom: none;
}

/* MyVault specific icon colors */
.members-myvault-modify .text-primary {
    color: #6610f2 !important;
}

.members-myvault-modify .hero-title i,
.members-myvault-modify .hero-features .feature-item i,
.members-myvault-modify .hero-icon i {
    color: #6610f2 !important;
    filter: drop-shadow(1px 1px 3px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

.members-myvault-modify .breadcrumb-modern .breadcrumb-item a,
.members-myvault-modify .breadcrumb-modern .breadcrumb-item.active {
    color: #6610f2 !important;
}

.members-myvault-modify .form-floating > .form-control:focus {
    border-color: #6610f2 !important;
    box-shadow: 0 0 0 0.2rem rgba(102, 16, 242, 0.25) !important;
}

.members-myvault-modify .form-text i {
    color: #6610f2 !important;
}

/* File wrapper (legacy support) */
.file-upload-wrapper {
    border: 2px dashed #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.file-upload-wrapper:hover {
    border-color: #008AA0;
    background-color: rgba(0, 138, 160, 0.05);
}

.file-upload-wrapper.file-upload-drag-over {
    border-color: #198754 !important;
    background-color: rgba(25, 135, 84, 0.1) !important;
    transform: scale(1.01);
}

/* ==========================================================================
   MyVault Add Page Specific Styles
   ========================================================================== */
/* MyVault uses slightly more padding */
.members-myvault-add .file-upload-section {
    padding: 2rem;
}

/* Card styling for MyVault add page */
.members-myvault-add .hero-section .card {
    border-radius: 0.75rem;
    overflow: hidden;
}

.members-myvault-add .card {
    border-radius: 0.5rem;
}

.members-myvault-add .card-header {
    border-bottom: none;
    background: linear-gradient(135deg, #008AA0, #006a7a) !important;
}

/* ==========================================================================
   Breadcrumb Styling (Shared)
   ========================================================================== */
.breadcrumb-modern {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-modern .breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.breadcrumb-modern .breadcrumb-item {
    color: #6c757d;
}

.breadcrumb-modern .breadcrumb-item.active {
    color: #008AA0;
    font-weight: 600;
}

.breadcrumb-modern .breadcrumb-item a {
    color: #008AA0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-modern .breadcrumb-item a:hover {
    color: #006B7D;
    text-decoration: underline;
}

/* Alternative breadcrumb styling */
.breadcrumb-modern {
    background: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

/* Enhanced floating form labels */
.form-floating > .form-control {
    height: calc(3.5rem + 2px);
    padding: 1rem 0.75rem;
    border: 1px solid #ced4da;
}

.form-floating > .form-control:focus {
    border-color: #008AA0;
    box-shadow: 0 0 0 0.2rem rgba(0, 138, 160, 0.25);
}

.form-floating > .form-control::placeholder {
    color: transparent;
}

.form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
    color: #6c757d;
    font-weight: 400;
    opacity: 1;
    transform: scale(1) translateY(0) translateX(0);
}

.form-floating > .form-control[readonly] ~ label,
.form-floating > .form-control[disabled] ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    color: #6c757d;
    font-weight: 500;
}

.form-floating > textarea.form-control {
    min-height: 120px;
    resize: vertical;
    padding-top: 1rem;
}

.form-floating > textarea.pw-textarea {
    min-height: 400px;
}

.form-floating > textarea.form-control ~ label {
    height: auto;
    padding-top: 1rem;
}

.form-floating > label::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -0.25rem;
    right: -0.25rem;
    height: 0.125rem;
    background: white;
    z-index: -1;
}

/* Form text and spacing */
.form-text {
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.4;
    margin-top: 0.375rem;
}

.form-text i {
    color: #008AA0;
    opacity: 0.8;
    margin-right: 0.25rem;
}

.form-text strong {
    color: #495057;
}

.form-floating + .form-text {
    margin-top: 0.5rem;
}

.form-text + .character-counter {
    margin-top: 0.5rem;
}

/* Enhanced button styles */
.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-info:hover,
.btn-outline-secondary:hover {
    transform: translateY(-1px);
}

/* Enhanced form validation */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.invalid-feedback {
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
    background: #fff;
    border: 1px solid #dc3545;
    border-radius: 0.375rem;
    padding: 0.5rem;
    position: relative;
}

.invalid-feedback::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 15px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #dc3545;
}

.invalid-feedback::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 16px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #fff;
}

.form-floating > .form-control.is-invalid ~ label {
    color: #dc3545;
}

.form-floating > .form-control.is-valid ~ label {
    color: #198754;
}

.invalid-feedback {
    animation: slideInDown 0.3s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced card borders for MyMessages */
.members-mymessages-add .card.shadow-sm {
    border: 1px solid #adb5bd !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08) !important;
}

/* GridView and table enhancements */
.table-hover tbody tr:hover {
    background-color: rgba(0, 138, 160, 0.05);
}

.btn[disabled] {
    opacity: 0.8;
    cursor: not-allowed;
}

/* Alert animations */
.alert {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Storage Components
   ========================================================================== */
.storage-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.storage-progress {
    height: 12px;
    background: #f8f9fa;
    border-radius: 20px;
    overflow: hidden;
    margin: 1rem 0;
    border: 1px solid #e9ecef;
}

.storage-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #008AA0, #006B7D);
    border-radius: 20px;
    transition: width 0.5s ease;
}

/* ==========================================================================
   File Icons and Visual Elements
   ========================================================================== */
.file-icon {
    width: 40px;
    height: 40px;
    background: #008AA0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ==========================================================================
   Enhanced Spacing System
   ========================================================================== */
.mb-6 {
    margin-bottom: 4rem !important;
}

.extra-section-spacing {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
}

/* Specific section spacing */
#pnlMessagesForm > .card:not(:last-child),
#pnlVaultForm > .card:not(:last-child) {
    margin-bottom: 3rem !important;
}

#pnlMessagesForm > .alert,
#pnlVaultForm > .alert {
    margin-bottom: 3rem !important;
}

#pnlTellMeMoreNotWL {
    margin-bottom: 3rem !important;
}

/* ==========================================================================
   Button Stabilization System
   ========================================================================== */
.action-buttons-wrapper {
    position: relative;
    min-height: 60px;
}

.button-container {
    position: relative;
    height: auto;
    min-height: 48px;
}

.stable-button {
    position: relative !important;
    display: inline-block !important;
    width: 100% !important;
    min-height: 48px !important;
    line-height: 1.4 !important;
    text-align: center !important;
    vertical-align: middle !important;
    border: 2px solid transparent !important;
    padding: 12px 24px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    transition: none !important;
    transform: none !important;
    backface-visibility: visible !important;
    will-change: auto !important;
    cursor: pointer !important;
    text-decoration: none !important;
}

.stable-button:hover,
.stable-button:active,
.stable-button:visited {
    transform: none !important;
    text-decoration: none !important;
}

.stable-button:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
    transform: none !important;
}

/* LinkButton fixes */
.btn.linkbutton-fix {
    display: inline-block !important;
    text-decoration: none !important;
    border: 1px solid transparent !important;
    transition: none !important;
    transform: none !important;
}

.btn.linkbutton-fix:hover,
.btn.linkbutton-fix:active,
.btn.linkbutton-fix:focus,
.btn.linkbutton-fix:visited {
    text-decoration: none !important;
    transform: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Prevent layout shift */
.action-buttons-wrapper .row {
    margin: 0 !important;
}

.action-buttons-wrapper .col-md-6 {
    padding: 0 15px !important;
}

.card-footer .btn {
    min-width: auto !important;
    white-space: nowrap !important;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out !important;
}

.card-footer .btn:active {
    transform: none !important;
}

/* ==========================================================================
   Card Grid System
   ========================================================================== */
.card.h-100 {
    display: flex;
    flex-direction: column;
}

.card.h-100 .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card.h-100 .card-footer {
    margin-top: auto;
}

.min-w-0 {
    min-width: 0;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.card .row.g-2 {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
}

/* Content preview areas */
.message-preview,
.note-preview {
    overflow: hidden;
    font-size: 0.875rem;
    line-height: 1.3;
}

/* ==========================================================================
   Form Components (primarily for MyMessages)
   ========================================================================== */
/* ASP.NET Checkbox fix for MDBootstrap conflicts */
.form-check span {
    display: contents !important;
    position: static !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.form-check span::before,
.form-check span::after {
    display: none !important;
    content: none !important;
    background: none !important;
    border: none !important;
    position: static !important;
}

.form-check input[type="hidden"] {
    display: none !important;
    position: absolute !important;
    left: -9999px !important;
    visibility: hidden !important;
}

.form-check input[type="checkbox"] {
    display: none !important;
}

.form-check input[type="checkbox"].form-check-input {
    display: inline-block !important;
    position: relative !important;
    width: 1rem !important;
    height: 1rem !important;
    margin-right: 0.375rem !important;
    vertical-align: top !important;
    background-color: #fff !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    border: 1px solid rgba(0, 0, 0, 0.25) !important;
    border-radius: 0.25rem !important;
    transition: background-color 0.15s ease-in-out, background-position 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    print-color-adjust: exact !important;
    float: none !important;
}

.form-check input[type="checkbox"].form-check-input::before,
.form-check input[type="checkbox"].form-check-input::after {
    display: none !important;
    content: none !important;
}

.form-check input[type="checkbox"].form-check-input:checked {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e") !important;
}

.form-check input[type="checkbox"].form-check-input:focus {
    border-color: #86b7fe !important;
    outline: 0 !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

.form-check input[type="checkbox"].form-check-input:disabled {
    pointer-events: none !important;
    filter: none !important;
    opacity: 0.5 !important;
}

.form-check .form-check-label {
    cursor: pointer !important;
    line-height: 1.5 !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    display: inline !important;
    vertical-align: top !important;
}

.form-check {
    display: block !important;
    min-height: 1.5rem !important;
    padding-left: 0 !important;
    margin-bottom: 0.125rem !important;
    margin-left: 0 !important;
    text-align: left !important;
}

.form-check span[class*="form-check"],
.form-check span[class*="checkbox"] {
    background: none !important;
    border: none !important;
    position: static !important;
    display: contents !important;
}

.card-body .form-check {
    margin-left: 24px !important;
    padding-left: 0 !important;
    position: relative !important;
}

#UpdatePanel_Preferences .form-check {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (min-width: 768px) {
    .card-footer .btn-sm {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .hero-subtitle,
    .hero-description {
        text-align: center;
    }
    
    .hero-features .row {
        justify-content: center;
    }
    
    .hero-icon i {
        font-size: 3rem;
        margin-top: 1rem;
    }
    
    .mb-6 {
        margin-bottom: 3rem !important;
    }
}

@media (max-width: 768px) {
    .hero-section .card-body {
        padding: 2rem 1.5rem !important;
    }
    
    .file-upload-section {
        padding: 1.5rem 1rem;
    }
    
    .members-myvault-add .file-upload-section {
        padding: 1.5rem 1rem;
    }
    
    .members-mymessages-add .file-upload-section {
        padding: 1.5rem 1rem;
    }
    
    .members-mymessages-modify .file-upload-section {
        padding: 1.5rem 1rem;
    }
    
    .members-myvault-modify .file-upload-section {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-features .feature-item {
        font-size: 0.9rem;
        padding: 10px 14px;
    }
    
    .mb-6 {
        margin-bottom: 2.5rem !important;
    }
    
    .breadcrumb-modern {
        font-size: 0.875rem;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
    
    .hero-section .card-body {
        padding: 1.5rem 1rem !important;
    }
    
    /* Single column layout on mobile */
    .card .row.g-2 .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .card .row.g-2 .col-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .card-footer .d-flex {
        flex-direction: column;
    }
    
    /* Smaller file icon on mobile */
    .file-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

/* ==========================================================================
   MyMessages Delete Page Specific Styles
   ========================================================================== */

/* Enhanced warning card styling */
.members-mymessages-delete .card.border-danger {
    border-color: #dc3545 !important;
    border-width: 2px !important;
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.2) !important;
    animation: gentlePulse 2s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% { 
        box-shadow: 0 4px 16px rgba(220, 53, 69, 0.2); 
    }
    50% { 
        box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3); 
    }
}

/* Warning card header gradient */
.members-mymessages-delete .card.border-danger .card-header.bg-danger {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    border-bottom: none;
}

/* Message preview content styling */
.members-mymessages-delete .message-preview-content {
    max-height: 200px;
    overflow-y: auto;
    line-height: 1.6;
    font-size: 0.95rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: 1px solid #e9ecef;
    scrollbar-width: thin;
    scrollbar-color: #008AA0 #f1f3f4;
}

.members-mymessages-delete .message-preview-content::-webkit-scrollbar {
    width: 6px;
}

.members-mymessages-delete .message-preview-content::-webkit-scrollbar-track {
    background: #f1f3f4;
    border-radius: 3px;
}

.members-mymessages-delete .message-preview-content::-webkit-scrollbar-thumb {
    background: #008AA0;
    border-radius: 3px;
}

/* Enhanced card borders for MyMessages Delete */
.members-mymessages-delete .card.shadow-sm {
    border: 1px solid #adb5bd !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

/* Delete button enhanced styling */
.members-mymessages-delete .btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-color: #dc3545;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.members-mymessages-delete .btn-danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.members-mymessages-delete .btn-danger:hover::before {
    left: 100%;
}

.members-mymessages-delete .btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #b21e2f) !important;
    border-color: #b21e2f !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.4) !important;
}

/* Cancel button enhanced styling */
.members-mymessages-delete .btn-outline-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Form control plaintext styling for message details */
.members-mymessages-delete .form-control-plaintext {
    padding: 0.5rem 0;
    background: transparent;
    border: none;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #495057;
    word-wrap: break-word;
    transition: color 0.2s ease;
}

.members-mymessages-delete .form-control-plaintext.border-bottom {
    border-bottom: 1px solid #e9ecef !important;
    padding-bottom: 0.75rem;
}

/* Enhanced label styling */
.members-mymessages-delete .form-label.fw-bold {
    color: #008AA0;
    font-weight: 600 !important;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.members-mymessages-delete .form-label.fw-bold i {
    margin-right: 0.5rem;
    opacity: 0.8;
}

/* Text breaking for long content */
.members-mymessages-delete .text-break {
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* Warning icon styling in hero */
.members-mymessages-delete .text-warning {
    color: #ffc107 !important;
}

/* Breadcrumb styling for delete page */
.members-mymessages-delete .breadcrumb-modern .breadcrumb-item a,
.members-mymessages-delete .breadcrumb-modern .breadcrumb-item.active {
    color: #008AA0 !important;
}

/* DataList styling to remove default margins */
.members-mymessages-delete .card-body .p-4 {
    margin: 0;
}

/* Enhanced alert styling */
.members-mymessages-delete .alert-warning {
    border: 1px solid #ffc107;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05));
    border-left: 4px solid #ffc107;
}

.members-mymessages-delete .alert-warning .alert-heading {
    color: #856404;
    font-weight: 700;
}

/* No message found styling */
.members-mymessages-delete .card-body.text-center.py-5 {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.members-mymessages-delete .card-body.text-center.py-5 i {
    color: #6c757d;
    opacity: 0.7;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Message size badge styling */
.members-mymessages-delete .badge.bg-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268) !important;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    font-weight: 500;
}

/* Row spacing enhancements */
.members-mymessages-delete .row.mb-3 {
    margin-bottom: 1.5rem !important;
}

.members-mymessages-delete .row:last-child {
    margin-bottom: 0;
}

/* Card animation entrance */
.members-mymessages-delete .card {
    animation: slideInUp 0.4s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation for cards */
.members-mymessages-delete .card:nth-child(1) { animation-delay: 0s; }
.members-mymessages-delete .card:nth-child(2) { animation-delay: 0.1s; }
.members-mymessages-delete .card:nth-child(3) { animation-delay: 0.2s; }
.members-mymessages-delete .card:nth-child(4) { animation-delay: 0.3s; }

/* Button loading state styling */
.members-mymessages-delete .btn-danger:disabled {
    background: linear-gradient(135deg, #6c757d, #5a6268) !important;
    border-color: #6c757d !important;
    cursor: not-allowed;
    opacity: 0.8;
}

/* ==========================================================================
   MyVault Delete Page Specific Styles
   ========================================================================== */

/* Enhanced warning card styling for MyVault */
.members-myvault-delete .card.border-danger {
    border-color: #dc3545 !important;
    border-width: 2px !important;
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.2) !important;
    animation: gentlePulse 2s ease-in-out infinite;
}

/* MyVault Delete-specific hero styling */
.members-myvault-delete .hero-section .card-body {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;
}

/* Delete page specific hero icon color for MyVault */
.members-myvault-delete .hero-title i {
    color: #dc3545 !important;
}

/* Hero icon for MyVault delete */
.members-myvault-delete .hero-icon i {
    color: #ffc107 !important;
}

/* Warning card header gradient for MyVault */
.members-myvault-delete .card.border-danger .card-header.bg-danger {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    border-bottom: none;
}

/* Item preview content styling for MyVault */
.members-myvault-delete .item-preview-content {
    max-height: 150px;
    overflow-y: auto;
    line-height: 1.6;
    font-size: 0.95rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: 1px solid #e9ecef;
    scrollbar-width: thin;
    scrollbar-color: #6610f2 #f1f3f4;
}

.members-myvault-delete .item-preview-content::-webkit-scrollbar {
    width: 6px;
}

.members-myvault-delete .item-preview-content::-webkit-scrollbar-track {
    background: #f1f3f4;
    border-radius: 3px;
}

.members-myvault-delete .item-preview-content::-webkit-scrollbar-thumb {
    background: #6610f2;
    border-radius: 3px;
}

/* Enhanced card borders for MyVault Delete */
.members-myvault-delete .card.shadow-sm {
    border: 1px solid #adb5bd !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

/* MyVault Delete specific color scheme */
.members-myvault-delete .text-primary,
.members-myvault-delete .form-label.fw-bold {
    color: #6610f2 !important;
}

.members-myvault-delete .bg-primary {
    background-color: #6610f2 !important;
}

.members-myvault-delete .badge.bg-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268) !important;
}

/* Delete button enhanced styling for MyVault */
.members-myvault-delete .btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-color: #dc3545;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.members-myvault-delete .btn-danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.members-myvault-delete .btn-danger:hover::before {
    left: 100%;
}

.members-myvault-delete .btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #b21e2f) !important;
    border-color: #b21e2f !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.4) !important;
}

/* Cancel button enhanced styling for MyVault */
.members-myvault-delete .btn-outline-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Form control plaintext styling for MyVault item details */
.members-myvault-delete .form-control-plaintext {
    padding: 0.5rem 0;
    background: transparent;
    border: none;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #495057;
    word-wrap: break-word;
    transition: color 0.2s ease;
}

.members-myvault-delete .form-control-plaintext.border-bottom {
    border-bottom: 1px solid #e9ecef !important;
    padding-bottom: 0.75rem;
}

/* Enhanced label styling for MyVault */
.members-myvault-delete .form-label.fw-bold {
    color: #6610f2;
    font-weight: 600 !important;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.members-myvault-delete .form-label.fw-bold i {
    margin-right: 0.5rem;
    opacity: 0.8;
}

/* Text breaking for long content */
.members-myvault-delete .text-break {
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* Warning icon styling in hero for MyVault */
.members-myvault-delete .text-warning {
    color: #ffc107 !important;
}

/* Breadcrumb styling for MyVault delete page */
.members-myvault-delete .breadcrumb-modern .breadcrumb-item a,
.members-myvault-delete .breadcrumb-modern .breadcrumb-item.active {
    color: #6610f2 !important;
}

/* DataList styling to remove default margins */
.members-myvault-delete .card-body .p-4 {
    margin: 0;
}

/* Enhanced alert styling for MyVault */
.members-myvault-delete .alert-warning {
    border: 1px solid #ffc107;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05));
    border-left: 4px solid #ffc107;
}

.members-myvault-delete .alert-warning .alert-heading {
    color: #856404;
    font-weight: 700;
}

/* No item found styling */
.members-myvault-delete .card-body.text-center.py-5 {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.members-myvault-delete .card-body.text-center.py-5 i {
    color: #6c757d;
    opacity: 0.7;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

/* Item size badge styling for MyVault */
.members-myvault-delete .badge.bg-secondary {
    background: linear-gradient(135deg, #6610f2, #520dc2) !important;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    font-weight: 500;
}

/* Row spacing enhancements for MyVault */
.members-myvault-delete .row.mb-3 {
    margin-bottom: 1.5rem !important;
}

.members-myvault-delete .row:last-child {
    margin-bottom: 0;
}

/* Card animation entrance for MyVault */
.members-myvault-delete .card {
    animation: slideInUp 0.4s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation for MyVault cards */
.members-myvault-delete .card:nth-child(1) { animation-delay: 0s; }
.members-myvault-delete .card:nth-child(2) { animation-delay: 0.1s; }
.members-myvault-delete .card:nth-child(3) { animation-delay: 0.2s; }
.members-myvault-delete .card:nth-child(4) { animation-delay: 0.3s; }

/* Button loading state styling for MyVault */
.members-myvault-delete .btn-danger:disabled {
    background: linear-gradient(135deg, #6c757d, #5a6268) !important;
    border-color: #6c757d !important;
    cursor: not-allowed;
    opacity: 0.8;
}

/* File icon specific styling for MyVault */
.members-myvault-delete .file-icon {
    background: linear-gradient(135deg, #6610f2, #520dc2);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Responsive adjustments for MyVault delete page */
@media (max-width: 768px) {
    .members-myvault-delete .item-preview-content {
        max-height: 120px;
        font-size: 0.9rem;
    }
    
    .members-myvault-delete .form-label.fw-bold {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }
    
    .members-myvault-delete .form-control-plaintext {
        font-size: 0.9rem;
    }
    
    /* Stack form labels and content on mobile */
    .members-myvault-delete .row .col-md-3,
    .members-myvault-delete .row .col-md-9 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .members-myvault-delete .row .col-md-3 {
        margin-bottom: 0.5rem;
    }
    
    /* Hero section adjustments */
    .members-myvault-delete .hero-section .card-body {
        text-align: center;
    }
    
    .members-myvault-delete .hero-icon {
        margin-top: 1rem;
    }
}

@media (max-width: 575.98px) {
    .members-myvault-delete .card-body .p-4 {
        padding: 1.5rem !important;
    }
    
    .members-myvault-delete .hero-section .card-body {
        padding: 1.5rem 1rem !important;
    }
    
    /* Adjust button order on mobile for better UX */
    .members-myvault-delete .col-md-6.order-md-1 {
        order: 1;
    }
    
    .members-myvault-delete .col-md-6.order-md-2 {
        order: 2;
    }
    
    /* Larger tap targets on mobile */
    .members-myvault-delete .btn-lg {
        min-height: 50px;
        font-size: 1rem;
    }
    
    /* Warning card adjustments */
    .members-myvault-delete .alert-warning {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .members-myvault-delete .alert-warning .fa-2x {
        font-size: 1.5rem !important;
    }
}