/* TempMail Platform - Beautiful Gradient Color Scheme */

/* Main gradient backgrounds - User Preferred Pink & Blue */
body {
    background: #EEAECA;
    background: radial-gradient(circle, rgba(238, 174, 202, 1) 0%, rgba(148, 187, 233, 1) 100%);
    min-height: 100vh;
    color: white !important;
}

.hero-section {
    background: radial-gradient(circle, rgba(238, 174, 202, 0.9) 0%, rgba(148, 187, 233, 0.9) 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.05"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

/* Card gradients - Dark Theme */
.card {
    background: linear-gradient(145deg, rgba(40, 44, 52, 0.95) 0%, rgba(33, 37, 41, 0.9) 100%) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(238, 174, 202, 0.3) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    color: white !important;
}

.feature-card {
    background: linear-gradient(145deg, rgba(44, 48, 56, 0.9) 0%, rgba(37, 41, 45, 0.8) 100%) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(238, 174, 202, 0.4) !important;
    transition: all 0.3s ease;
    color: white !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: linear-gradient(145deg, rgba(48, 52, 60, 0.95) 0%, rgba(41, 45, 49, 0.9) 100%) !important;
    box-shadow: 0 20px 40px rgba(238, 174, 202, 0.3);
}

.tool-card {
    background: linear-gradient(145deg, rgba(40, 44, 52, 0.9) 0%, rgba(33, 37, 41, 0.8) 100%) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(238, 174, 202, 0.3) !important;
    transition: all 0.3s ease;
    color: white !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.tool-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(145deg, rgba(44, 48, 56, 0.95) 0%, rgba(37, 41, 45, 0.9) 100%) !important;
    box-shadow: 0 15px 30px rgba(238, 174, 202, 0.3);
}

/* Button gradients - Vibrant Orange to Pink - Responsive */
.btn-gradient, .btn-primary, .btn {
    background-image: linear-gradient(to right, #FF512F 0%, #DD2476 51%, #FF512F 100%) !important;
    margin: 5px;
    padding: 8px 16px;
    text-align: center;
    text-transform: uppercase;
    transition: 0.5s;
    background-size: 200% auto;
    color: white !important;
    box-shadow: 0 0 10px rgba(238, 174, 202, 0.2);
    border-radius: 6px;
    border: none !important;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.875rem;
    display: inline-block;
    min-width: auto;
}

.btn-gradient:hover, .btn-primary:hover, .btn:hover {
    background-position: right center !important;
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(221, 36, 118, 0.3);
}

.btn-outline-primary {
    background-image: linear-gradient(to right, #FF512F 0%, #DD2476 51%, #FF512F 100%) !important;
    background-size: 200% auto;
    border: 1px solid transparent !important;
    color: white !important;
    padding: 6px 12px;
    text-transform: uppercase;
    transition: 0.5s;
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(255, 81, 47, 0.15);
    font-size: 0.875rem;
}

.btn-outline-primary:hover {
    background-position: right center !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 0 12px rgba(221, 36, 118, 0.3);
}

.btn-outline-success {
    background-image: linear-gradient(to right, #11998e 0%, #38ef7d 51%, #11998e 100%) !important;
    background-size: 200% auto;
    border: none !important;
    color: white !important;
    padding: 6px 12px;
    text-transform: uppercase;
    transition: 0.5s;
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(17, 153, 142, 0.15);
    font-size: 0.875rem;
}

.btn-outline-success:hover {
    background-position: right center !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 0 12px rgba(56, 239, 125, 0.3);
}

.btn-outline-info {
    background-image: linear-gradient(to right, #667eea 0%, #764ba2 51%, #667eea 100%) !important;
    background-size: 200% auto;
    border: none !important;
    color: white !important;
    padding: 6px 12px;
    text-transform: uppercase;
    transition: 0.5s;
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.15);
    font-size: 0.875rem;
}

.btn-outline-info:hover {
    background-position: right center !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 0 12px rgba(118, 75, 162, 0.3);
}

.btn-outline-warning {
    background-image: linear-gradient(to right, #f093fb 0%, #f5576c 51%, #f093fb 100%) !important;
    background-size: 200% auto;
    border: none !important;
    color: white !important;
    padding: 6px 12px;
    text-transform: uppercase;
    transition: 0.5s;
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(240, 147, 251, 0.15);
    font-size: 0.875rem;
}

.btn-outline-warning:hover {
    background-position: right center !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 0 12px rgba(245, 87, 108, 0.3);
}

/* Form elements with gradients - Dark Theme */
.form-control, .form-select {
    background: linear-gradient(145deg, rgba(44, 48, 56, 0.9) 0%, rgba(37, 41, 45, 0.8) 100%) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(238, 174, 202, 0.4) !important;
    color: white !important;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background: linear-gradient(145deg, rgba(48, 52, 60, 0.95) 0%, rgba(41, 45, 49, 0.9) 100%) !important;
    border-color: rgba(148, 187, 233, 0.6) !important;
    box-shadow: 0 0 0 0.25rem rgba(148, 187, 233, 0.25) !important;
    color: white !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.form-control option {
    background: #2c3034 !important;
    color: white !important;
}

/* Navigation with gradient - Enhanced Visibility */
.navbar {
    background: linear-gradient(135deg, rgba(68, 68, 68, 0.95) 0%, rgba(34, 34, 34, 0.95) 100%) !important;
    backdrop-filter: blur(15px);
    border-bottom: 2px solid rgba(238, 174, 202, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar-brand, .nav-link {
    color: white !important;
    transition: all 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

.nav-link:hover {
    color: rgba(238, 174, 202, 1) !important;
    text-shadow: 0 0 10px rgba(238, 174, 202, 0.8);
    transform: translateY(-1px);
}

.navbar-brand:hover {
    color: rgba(148, 187, 233, 1) !important;
    text-shadow: 0 0 15px rgba(148, 187, 233, 0.8);
}

/* Footer gradient */
.footer, footer {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(118, 75, 162, 0.2) 100%) !important;
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: white !important;
}

/* Text colors for better visibility - Dark Theme */
.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.text-dark {
    color: white !important;
}

/* Table improvements - Dark Theme */
.table {
    color: white !important;
    background: transparent !important;
}

.table-dark {
    background: linear-gradient(145deg, rgba(44, 48, 56, 0.8) 0%, rgba(37, 41, 45, 0.7) 100%) !important;
    backdrop-filter: blur(10px);
}

.table-dark td, .table-dark th {
    border-color: rgba(238, 174, 202, 0.3) !important;
    color: white !important;
}

.table td, .table th {
    color: white !important;
    border-color: rgba(238, 174, 202, 0.3) !important;
}

/* Badge gradients - Vibrant Colors */
.badge {
    background-image: linear-gradient(to right, #FF512F 0%, #DD2476 51%, #FF512F 100%) !important;
    background-size: 200% auto;
    color: white !important;
    font-weight: 600;
    padding: 0.5em 0.8em;
    border-radius: 8px;
    transition: 0.3s;
}

.badge:hover {
    background-position: right center !important;
}

.bg-success {
    background-image: linear-gradient(to right, #11998e 0%, #38ef7d 51%, #11998e 100%) !important;
    background-size: 200% auto;
    color: white !important;
    transition: 0.3s;
}

.bg-success:hover {
    background-position: right center !important;
}

.bg-danger {
    background-image: linear-gradient(to right, #FF512F 0%, #DD2476 51%, #FF512F 100%) !important;
    background-size: 200% auto;
    color: white !important;
    transition: 0.3s;
}

.bg-danger:hover {
    background-position: right center !important;
}

.bg-warning {
    background-image: linear-gradient(to right, #f093fb 0%, #f5576c 51%, #f093fb 100%) !important;
    background-size: 200% auto;
    color: white !important;
    transition: 0.3s;
}

.bg-warning:hover {
    background-position: right center !important;
}

.bg-info {
    background-image: linear-gradient(to right, #667eea 0%, #764ba2 51%, #667eea 100%) !important;
    background-size: 200% auto;
    color: white !important;
    transition: 0.3s;
}

.bg-info:hover {
    background-position: right center !important;
}

/* Alert gradients */
.alert {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

.alert-success {
    background: linear-gradient(145deg, rgba(40, 167, 69, 0.2) 0%, rgba(32, 201, 151, 0.1) 100%) !important;
    border-color: rgba(40, 167, 69, 0.3) !important;
    color: white !important;
}

.alert-danger {
    background: linear-gradient(145deg, rgba(220, 53, 69, 0.2) 0%, rgba(231, 76, 60, 0.1) 100%) !important;
    border-color: rgba(220, 53, 69, 0.3) !important;
    color: white !important;
}

.alert-warning {
    background: linear-gradient(145deg, rgba(255, 193, 7, 0.2) 0%, rgba(253, 126, 20, 0.1) 100%) !important;
    border-color: rgba(255, 193, 7, 0.3) !important;
    color: white !important;
}

.alert-info {
    background: linear-gradient(145deg, rgba(23, 162, 184, 0.2) 0%, rgba(102, 16, 242, 0.1) 100%) !important;
    border-color: rgba(23, 162, 184, 0.3) !important;
    color: white !important;
}

/* Tab styling - Enhanced Attractive Design */
.nav-tabs .nav-link {
    background: linear-gradient(145deg, rgba(44, 48, 56, 0.8) 0%, rgba(37, 41, 45, 0.7) 100%) !important;
    border: 2px solid rgba(238, 174, 202, 0.3) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.4s ease;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 24px;
    margin-right: 5px;
    position: relative;
    overflow: hidden;
}

.nav-tabs .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(238, 174, 202, 0.2), transparent);
    transition: left 0.5s;
}

.nav-tabs .nav-link:hover::before {
    left: 100%;
}

.nav-tabs .nav-link.active {
    background: linear-gradient(145deg, rgba(238, 174, 202, 0.9) 0%, rgba(148, 187, 233, 0.8) 100%) !important;
    border-color: rgba(238, 174, 202, 0.8) !important;
    color: white !important;
    box-shadow: 0 8px 25px rgba(238, 174, 202, 0.4);
    transform: translateY(-3px);
}

.nav-tabs .nav-link:hover {
    background: linear-gradient(145deg, rgba(48, 52, 60, 0.9) 0%, rgba(41, 45, 49, 0.8) 100%) !important;
    border-color: rgba(148, 187, 233, 0.5) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(148, 187, 233, 0.3);
}

/* Modal improvements */
.modal-content {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.modal-title {
    color: white !important;
}

/* Input group styling */
.input-group-text {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
}

/* Breadcrumb styling */
.breadcrumb {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    backdrop-filter: blur(10px);
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8) !important;
}

.breadcrumb-item.active {
    color: white !important;
}

/* Fix specific visibility issues - Dark Theme */
.container h1, .container h2, .container h3, .container h4, .container h5, .container h6 {
    color: white !important;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.container p, .container div, .container span {
    color: white !important;
}

.card-body, .card-title, .card-text {
    color: white !important;
}

.list-group-item {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

/* Email preview modal fixes */
.modal-body {
    color: white !important;
}

.modal-body p, .modal-body div, .modal-body span {
    color: white !important;
}

/* Form labels */
.form-label {
    color: white !important;
    font-weight: 500;
}

.form-text {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Progress bars */
.progress {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    border-radius: 10px;
}

.progress-bar {
    background-image: linear-gradient(to right, #FF512F 0%, #DD2476 51%, #FF512F 100%) !important;
    background-size: 200% auto;
    border-radius: 10px;
    animation: progressMove 2s ease infinite;
}

@keyframes progressMove {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

/* Dropdown menus */
.dropdown-menu {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.dropdown-item {
    color: white !important;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: linear-gradient(145deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.1) 100%) !important;
    color: white !important;
}

/* Textarea specific fixes */
textarea.form-control {
    color: white !important;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
}

/* Select dropdown options */
select.form-control option, select.form-select option {
    background: #2a2a2a !important;
    color: white !important;
}

/* Fix for code/pre elements */
pre, code {
    background: rgba(0, 0, 0, 0.3) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Pagination */
.page-link {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

.page-link:hover {
    background: linear-gradient(145deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.1) 100%) !important;
    color: white !important;
}

.page-item.active .page-link {
    background: linear-gradient(45deg, #667eea, #764ba2) !important;
    border-color: transparent !important;
}

/* Additional text visibility fixes */
strong, b {
    color: white !important;
}

small {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Ensure all links are visible */
a {
    color: #f093fb !important;
    transition: color 0.3s ease;
}

a:hover {
    color: #667eea !important;
}

/* Fix any remaining dark text */
.text-dark, .dark {
    color: white !important;
}

/* Override any remaining white background issues */
.bg-white {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    color: white !important;
}

.bg-light {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    color: white !important;
}

/* Specific fixes for validation results */
.validation-results {
    color: white !important;
}

.validation-results td, .validation-results th {
    color: white !important;
}

/* Email content in modals */
.email-content {
    color: white !important;
    background: rgba(0, 0, 0, 0.2) !important;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.email-content p, .email-content div, .email-content span {
    color: white !important;
}

/* Responsive button sizing */
@media (max-width: 768px) {
    .btn-gradient, .btn-primary, .btn {
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
        margin: 3px !important;
    }
    
    .btn-outline-primary, .btn-outline-success, .btn-outline-info, .btn-outline-warning {
        padding: 5px 10px !important;
        font-size: 0.8rem !important;
        margin: 2px !important;
    }
}

@media (max-width: 576px) {
    .btn-gradient, .btn-primary, .btn {
        padding: 5px 10px !important;
        font-size: 0.75rem !important;
        margin: 2px !important;
    }
    
    .btn-outline-primary, .btn-outline-success, .btn-outline-info, .btn-outline-warning {
        padding: 4px 8px !important;
        font-size: 0.75rem !important;
        margin: 1px !important;
    }
}

/* Small button variant */
.btn-sm {
    padding: 4px 8px !important;
    font-size: 0.75rem !important;
    margin: 2px !important;
}

/* Large button variant */
.btn-lg {
    padding: 12px 24px !important;
    font-size: 1rem !important;
    margin: 8px !important;
}

/* Button group spacing fix */
.btn-group .btn, .btn-toolbar .btn {
    margin: 0 !important;
}

/* Action button specific sizing */
.action-buttons .btn {
    padding: 6px 12px !important;
    font-size: 0.8rem !important;
    margin: 2px !important;
}