/* LeadBlast Dashboard Custom Styles */

body {
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #0d6efd;
    --primary-dark: #0a58ca;
    --primary-light: #6ea8fe;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navbar Improvements */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand img {
    max-height: 50px;
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 6px;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Card Styles */
.modern-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.modern-card:hover {
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-2px);
}

.card-header-custom {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 1.5rem;
    margin: -2rem -2rem 2rem -2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header-custom h2,
.card-header-custom h3,
.card-header-custom h4 {
    margin: 0;
    font-weight: 600;
}

.card-header-custom .bi {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* Login Page Specific */
.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.login-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin: -3rem -3rem 2rem -3rem;
    padding: 2.5rem 3rem;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    border-radius: 12px 12px 0 0;
}

.login-logo {
    display: block;
    width: 180px;
    height: auto;
    margin: 0 auto 1.5rem auto;
}

.login-title {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

/* Form Enhancements */
.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Button Improvements */
.btn {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(13, 110, 253, 0.4);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Table Improvements - Compact Professional Style */
.table-modern {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.table-modern thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.table-modern thead th {
    border: none;
    padding: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.table-modern tbody tr {
    transition: all 0.2s ease;
}

.table-modern tbody tr:hover {
    background-color: #f8f9fa;
}

.table-modern tbody td {
    padding: 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.table-modern tbody tr:last-child td {
    border-bottom: none;
}

/* Compact Profile Tables */
.table-bordered {
    font-size: 0.9rem;
}

.table-bordered th {
    padding: 0.6rem 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    background-color: #f8f9fa;
    vertical-align: middle;
}

.table-bordered td {
    padding: 0.6rem 0.75rem;
    vertical-align: middle;
}

.table-bordered th[style*="background-color:#0d6efd"] {
    padding: 0.7rem 0.75rem;
    font-size: 0.85rem;
}

/* Make tables more compact on profile page */
.container .table-responsive {
    margin-bottom: 1rem;
}

.container h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.container h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    margin-top: 1rem;
}

/* Edit Link Styling - Compact */
.edit-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    background-color: #e7f1ff;
    font-size: 0.85rem;
}

.edit-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateX(3px);
}

.edit-link i {
    font-size: 0.85rem;
}

/* Alert Improvements - Compact */
.alert {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow);
    animation: slideInDown 0.5s ease;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.alert i {
    font-size: 1rem;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Info Icons */
.info-icon {
    color: var(--info-color);
    cursor: help;
    transition: all 0.3s ease;
}

.info-icon:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

/* Status Badge Styling */
.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.active {
    background-color: #d4edda;
    color: #155724;
}

/* Section Divider */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, transparent 100%);
    margin: 3rem 0;
}

/* Profile Page Specific - Compact Professional Design */
.profile-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: var(--border-radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
}

.profile-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.profile-header p {
    font-size: 0.9rem;
}

.profile-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--box-shadow);
}

.profile-section-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-section-title i {
    font-size: 1.2rem;
}

/* Compact Field Row in Profile */
.field-row {
    display: flex;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s ease;
    align-items: center;
    min-height: 42px;
}

.field-row:hover {
    background-color: #f8f9fa;
}

.field-row:last-child {
    border-bottom: none;
}

.field-label {
    font-weight: 600;
    color: #495057;
    flex: 0 0 180px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
}

.field-label i {
    font-size: 0.95rem;
    color: #6c757d;
}

.field-value {
    flex: 1;
    color: #212529;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    padding: 0 0.75rem;
}

.field-actions {
    flex: 0 0 70px;
    text-align: right;
}

/* Compact Cards for Profile Sections */
.compact-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.compact-card-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.compact-card-title i {
    font-size: 1rem;
}

/* Info Grid for Compact Display */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.info-item-icon {
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-size: 1rem;
}

.info-item-content {
    flex: 1;
}

.info-item-label {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.1rem;
}

.info-item-value {
    font-size: 0.9rem;
    color: #212529;
    font-weight: 500;
}

.info-item-edit {
    margin-left: 0.5rem;
}

/* Modal Improvements */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow-lg);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-footer {
    border-top: 1px solid #e9ecef;
}

/* Footer */
footer {
    margin-top: 4rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Utility Classes */
.text-muted-light {
    color: #6c757d;
    font-size: 0.9rem;
}

.badge-custom {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Loading Spinner Enhancement */
.spinner-border {
    border-width: 3px;
}

/* Compact spacing for profile sections */
.container.my-4 {
    margin-top: 1.25rem !important;
    margin-bottom: 1.25rem !important;
}

.my-4 {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1rem !important;
}

/* Tighten up profile page containers */
main.container {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* Red alert styling - make compact */
div[style*="color:#ff0000"], div[style*="color: #ff0000"] {
    padding: 0.75rem;
    background-color: #fff3cd;
    border-left: 3px solid #ffc107;
    border-radius: 6px;
    margin-bottom: 1rem !important;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .login-card {
        padding: 2rem 1.5rem;
    }

    .login-header {
        margin: -2rem -1.5rem 1.5rem -1.5rem;
        padding: 2rem 1.5rem;
    }

    .login-logo {
        width: 150px;
    }

    .login-title {
        font-size: 1.5rem;
    }

    .login-subtitle {
        font-size: 0.85rem;
    }

    .modern-card {
        padding: 1.5rem;
    }

    .field-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .field-label,
    .field-actions {
        flex: 1 1 auto;
    }

    .field-actions {
        text-align: left;
    }

    .container h2 {
        font-size: 1.1rem;
    }

    .table-bordered th,
    .table-bordered td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}

/* Extra small devices (320px - 576px) */
@media (max-width: 576px) {
    .login-container {
        padding: 1rem 0.5rem;
    }

    .login-card {
        padding: 1.5rem 1rem;
        max-width: 100%;
        margin: 0 0.5rem;
    }

    .login-header {
        margin: -1.5rem -1rem 1rem -1rem;
        padding: 1.5rem 1rem;
        border-radius: 8px 8px 0 0;
    }

    .login-logo {
        width: 120px;
        margin-bottom: 1rem;
    }

    .login-title {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .login-subtitle {
        font-size: 0.8rem;
    }

    .form-control,
    .form-select {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .alert {
        font-size: 0.85rem;
        padding: 0.75rem;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
    }

    .navbar,
    footer,
    .btn,
    .edit-link {
        display: none;
    }
}
