/* ===================================
   FIXTOOLS GLOBAL STYLES
   =================================== */

/* CSS Variables */
:root {
    --primary-color: #4f46e5;
    --primary-dark: #3730a3;
    --secondary-color: #6366f1;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --gray-color: #6b7280;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--dark-color);
    background-color: #fff;
}

/* Gradient backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, .08);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .1);
    border-radius: 12px;
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

.dropdown-item:hover {
    background-color: var(--light-color);
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
}

.min-vh-50 {
    min-height: 50vh;
}

/* Cards */
.card {
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tool-card:hover,
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .1) !important;
}

.tool-mini-card:hover {
    border-color: var(--primary-color) !important;
    background-color: var(--light-color);
}

.category-card:hover {
    border-color: var(--primary-color) !important;
    background-color: var(--primary-color);
    color: #fff !important;
}

.category-card:hover h6,
.category-card:hover small {
    color: #fff !important;
}

.card-img-top {
    border-radius: 12px 12px 0 0;
    height: 200px;
    object-fit: cover;
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-warning {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: #fff;
}

.btn-warning:hover {
    background-color: #d97706;
    border-color: #d97706;
    color: #fff;
}

.btn-lg {
    padding: 0.75rem 2rem;
}

/* Forms */
.form-control {
    border-radius: 8px;
    padding: 0.625rem 1rem;
    border-color: #e5e7eb;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-control-lg {
    padding: 0.75rem 1.25rem;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: #9ca3af;
    font-size: 0.95rem;
}

.footer a {
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer a:hover {
    color: #fff;
    padding-left: 3px;
    /* Subtle slide effect */
}

.footer h5,
.footer h6 {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
}

/* Footer Social Buttons */
.footer .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.footer .btn-outline-light:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

/* Footer Newsletter Card Override */
.footer .card {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Badge */
.badge {
    font-weight: 500;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
}

/* Tool Icon */
.tool-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-color);
}

/* Alerts */
.alert {
    border: none;
    border-radius: 10px;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "›";
}

/* Pagination */
.pagination {
    gap: 5px;
}

.page-link {
    border-radius: 8px;
    border: none;
    padding: 0.5rem 1rem;
    color: var(--dark-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
}

/* Scroll to top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.scroll-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.scroll-to-top.show {
    display: flex;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }
}

/* ===================================
   RESUME BUILDER STYLES
   =================================== */

/* Step Progress */
.step-progress {
    position: relative;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin: 0 auto 8px;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.step.active .step-circle,
.step.completed .step-circle {
    background: var(--primary-color, #007bff);
    color: #fff;
    border-color: var(--primary-color, #007bff);
}

.step.completed .step-circle::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.step-label {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
}

.step.active .step-label {
    color: var(--primary-color, #007bff);
    font-weight: 600;
}

.step-line {
    flex: 1;
    height: 3px;
    background: #e5e7eb;
    margin: 20px -10px 0;
    align-self: flex-start;
    margin-top: 20px;
}

.step.completed+.step-line {
    background: var(--primary-color, #007bff);
}

/* Experience Selection Cards */
.experience-option {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb !important;
    border-radius: 8px;
    overflow: hidden;
}

.experience-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color, #007bff) !important;
}

.experience-option.selected {
    border-color: var(--primary-color, #007bff) !important;
    background-color: rgba(0, 123, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.experience-option[data-type="fresher"].selected {
    border-color: var(--primary-color, #007bff) !important;
    background-color: rgba(0, 123, 255, 0.05);
}

.experience-option[data-type="experienced"].selected {
    border-color: var(--success-color, #28a745) !important;
    background-color: rgba(40, 167, 69, 0.05);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.experience-option .btn {
    transition: all 0.3s ease;
    border-radius: 6px;
}

.experience-option.selected .btn {
    background-color: var(--primary-color, #007bff);
    border-color: var(--primary-color, #007bff);
    color: white;
}

.experience-option[data-type="experienced"].selected .btn {
    background-color: var(--success-color, #28a745);
    border-color: var(--success-color, #28a745);
}

/* Entry Cards */
.education-entry,
.experience-entry,
.certification-entry,
.language-entry,
.project-entry {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    background: #fff;
    transition: all 0.3s ease;
    position: relative;
}

.education-entry:hover,
.experience-entry:hover,
.certification-entry:hover,
.language-entry:hover,
.project-entry:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.remove-entry {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

/* Template Selection Cards */
.template-option {
    padding: 0;
    margin: 0;
}

.template-card {
    display: block;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: center;
    padding: 0;
}

.template-card:hover {
    border-color: var(--primary-color, #007bff);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.form-check-input:checked+.template-card {
    border-color: var(--primary-color, #007bff);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.form-check-input:checked+.template-card .template-name {
    color: var(--primary-color, #007bff);
    font-weight: 700;
}

.template-preview {
    padding: 10px;
    background: #f9fafb;
    min-height: 80px;
}

.template-header {
    height: 16px;
    border-radius: 3px;
    margin-bottom: 8px;
    opacity: 0.8;
}

.template-body {
    padding: 0 4px;
}

.template-line {
    height: 5px;
    background: #d1d5db;
    border-radius: 2px;
    margin-bottom: 5px;
}

.template-line.short {
    width: 60%;
}

.template-name {
    padding: 8px 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    background: #fff;
    border-top: 1px solid #e5e7eb;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color, #007bff);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Image Compressor */
.upload-zone {
    border: 3px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary-color, #007bff);
    background: rgba(79, 70, 229, 0.05);
}

.upload-zone.dragover {
    transform: scale(1.02);
}

.upload-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.quality-preset.active {
    background-color: var(--primary-color, #007bff);
    border-color: var(--primary-color, #007bff);
    color: #fff;
}

.form-range::-webkit-slider-thumb {
    background: var(--primary-color, #007bff);
}

.form-range::-moz-range-thumb {
    background: var(--primary-color, #007bff);
}

/* Password Strength Meter */
.password-strength {
    height: 5px;
    border-radius: 2px;
    margin-top: 10px;
    background: #e9ecef;
    transition: all 0.3s;
}

.password-strength.strength-weak {
    background: linear-gradient(to right, #dc3545 33%, #e9ecef 33%);
}

.password-strength.strength-medium {
    background: linear-gradient(to right, #ffc107 66%, #e9ecef 66%);
}

.password-strength.strength-strong {
    background: #28a745;
}

#passwordDisplay.copied {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===================================
   IMAGE COMPRESSOR STYLES
   =================================== */

/* Upload Zone */
.upload-zone {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.upload-zone:hover {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.05);
}

.upload-zone.dragover {
    transform: scale(1.02);
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.05);
}

.upload-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Quality Controls */
.quality-preset {
    cursor: pointer;
    transition: all 0.3s ease;
}

.quality-preset.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Custom Range Slider */
.form-range::-webkit-slider-thumb {
    background: var(--primary-color);
}

.form-range::-moz-range-thumb {
    background: var(--primary-color);
}

/* Compression Stats */
.compression-stats {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.stat-item {
    margin-bottom: 15px;
}

.compression-circle {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===================================
   QR CODE GENERATOR STYLES
   =================================== */

/* QR Code Display */
.qr-display {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.qr-code-container {
    display: inline-block;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.qr-size-display {
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ===================================
   PASSWORD GENERATOR STYLES
   =================================== */

/* Password Display */
.password-display {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    margin: 20px 0;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-display.copied {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

/* Password Strength */
.password-strength {
    height: 4px;
    border-radius: 2px;
    margin: 10px 0;
    transition: all 0.3s ease;
}

.strength-weak {
    background: var(--danger-color);
    width: 33%;
}

.strength-medium {
    background: var(--warning-color);
    width: 66%;
}

.strength-strong {
    background: var(--success-color);
    width: 100%;
}

/* Character Options */
.char-options {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

/* ===================================
   COMMON FORM ENHANCEMENTS
   =================================== */

.form-control:focus {
    border-color: var(--primary-color, #007bff);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn-primary {
    background-color: var(--primary-color, #007bff);
    border-color: var(--primary-color, #007bff);
    border-radius: 6px;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-success {
    background-color: var(--success-color, #28a745);
    border-color: var(--success-color, #28a745);
    border-radius: 6px;
}

.btn-success:hover {
    background-color: #1e7e34;
    border-color: #1e7e34;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .step-circle {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .experience-option {
        margin-bottom: 15px;
    }

    .step-progress {
        padding: 15px 10px;
    }

    .upload-zone {
        padding: 30px 20px;
    }

    .qr-display {
        padding: 20px 15px;
    }

    .password-display {
        font-size: 1rem;
        min-height: 50px;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.text-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), #0056b3) !important;
}

.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    .no-print {
        display: none !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
}

/* EMI Calculator Chart */
.emi-chart {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(var(--primary-color) 0deg, var(--secondary-color) 0deg);
}

.emi-chart-inner {
    width: 140px;
    height: 140px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.emi-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}