/* Domain Appraisal Tool - Custom Styles */

:root {
    --primary-color: #0d6efd;
    --primary-dark: #0a58ca;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-radius: 0.375rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #212529;
    line-height: 1.5;
}

/* Navigation */
.navbar-brand img {
    max-height: 40px;
}

.navbar-dark.bg-primary {
    background-color: var(--primary-color) !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #ffffff;
}

/* Main Container */
.main-container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Cards */
.card {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: none;
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 600;
    padding: 0.75rem 1.25rem;
}

.card-header.bg-primary {
    background-color: var(--primary-color) !important;
    color: white;
}

.card-body {
    padding: 1.25rem;
}

/* Sidebar */
.sidebar .card {
    margin-bottom: 1.5rem;
}

.sidebar .list-group-item {
    border-left: none;
    border-right: none;
    padding: 0.75rem 1.25rem;
    transition: all 0.2s ease;
}

.sidebar .list-group-item:first-child {
    border-top: none;
}

.sidebar .list-group-item-action:hover {
    background-color: #f1f4f9;
    transform: translateX(5px);
}

.sidebar .list-group-item-action.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Form Elements */
.form-control, .form-select {
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-control-lg {
    height: calc(1.5em + 1rem + 2px);
    font-size: 1.25rem;
}

.input-group {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
}

.input-group .form-control {
    border-right: none;
}

.input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.25rem;
}

/* Domain Appraisal Results */
.appraisal-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0;
}

.domain-result-header {
    font-weight: 600;
}

#appraised-domain {
    font-weight: 700;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    width: 40%;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table-hover > tbody > tr:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Progress Bar */
.progress {
    height: 1.5rem;
    background-color: #e9ecef;
    border-radius: var(--border-radius);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.progress-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    transition: width 0.6s ease;
    font-weight: 600;
}

/* Subscription and Pricing */
#subscription-status {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 50rem;
    white-space: nowrap;
}

.subscription-highlight {
    box-shadow: 0 0.5rem 1rem rgba(13, 110, 253, 0.15);
    transform: translateY(-5px);
    border-width: 2px !important;
    position: relative;
    overflow: hidden;
}

.subscription-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--primary-color);
}

.pricing-card-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.pricing-card-title small {
    font-size: 1rem;
    font-weight: 400;
}

/* Stripe Elements Styling */
#card-element {
    padding: 1rem;
    background-color: #ffffff;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
}

#payment-form label {
    font-weight: 500;
}

.subscription-summary {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid #dee2e6;
}

#searches-remaining {
    font-size: 0.75rem;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: rgba(255, 255, 255, 0.75);
}

/* Loading Animation */
#loading {
    padding: 2rem 0;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.25rem;
    color: var(--primary-color);
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

.spinner-border {
    animation: pulse 1.5s infinite ease-in-out;
}

/* Modal */
.modal-content {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    padding: 1.25rem 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1.25rem 1.5rem;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .sidebar {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .appraisal-value {
        font-size: 2.5rem;
    }
    
    .table-responsive {
        margin-bottom: 0;
    }
    
    .row > div[class^="col"] {
        margin-bottom: 1rem;
    }
    
    .footer {
        padding: 2rem 0;
    }
    
    .footer div[class^="col"] {
        margin-bottom: 2rem;
    }
    
    .pricing-card-title {
        font-size: 2rem;
    }
} 