/* PDFTotal - Estilos Personalizados */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --pdf-red: #e74c3c;
    --pdf-blue: #3498db;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    border-radius: 15px 15px 0 0;
}

.plan-card {
    border-radius: 10px;
    transition: all 0.3s ease;
}

.plan-card-compact {
    border-radius: 8px;
    transition: all 0.2s ease;
}

.plan-card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}

/* Container de planos no modal de registro - garantir lado a lado */
#planSelectionContainer {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0.5rem;
    margin: 0 !important;
}

#planSelectionContainer > div {
    flex: 0 0 calc(50% - 0.25rem) !important;
    max-width: calc(50% - 0.25rem) !important;
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
    margin: 0 !important;
}

#planSelectionContainer .plan-card {
    margin-bottom: 0;
    min-height: auto;
    height: 100%;
}

/* Radio button visível sobre o card selecionado */
#planSelectionContainer .plan-card .form-check-input {
    position: absolute !important;
    top: 0.5rem !important;
    left: 0.5rem !important;
    z-index: 10 !important;
    width: 1.2rem !important;
    height: 1.2rem !important;
    cursor: pointer !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

#planSelectionContainer .plan-card .form-check-input:checked {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e") !important;
}

#planSelectionContainer .plan-card .form-check-input:not(:checked) {
    background-color: white !important;
    border-color: #dee2e6 !important;
}

/* Toggle Mensal/Anual - garantir que o selecionado fique azul */
#planSelectionContainer .plan-card .btn-check:checked + .btn.btn-outline-primary {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #ffffff !important;
}

#planSelectionContainer .plan-card .btn-check:not(:checked) + .btn.btn-outline-primary {
    background-color: #ffffff !important;
    border-color: #0d6efd !important;
    color: #0d6efd !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}


.plan-card input[type="radio"]:checked + label .plan-card {
    border-color: var(--primary-color) !important;
    background-color: rgba(13, 110, 253, 0.05);
}

.form-control-lg {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

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

.btn-lg {
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Prevenir scroll quando modal está aberto */
body.modal-open {
    overflow: hidden;
    padding-right: 0 !important;
}

/* Logo e Brand */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

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

.navbar-brand i {
    color: var(--pdf-red) !important;
    text-shadow: 0 0 10px rgba(231, 76, 60, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.navbar-brand span {
    background: linear-gradient(45deg, var(--pdf-red), var(--pdf-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--pdf-blue) 50%, #0056b3 100%);
    min-height: 500px;
    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.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-image {
    animation: float 3s ease-in-out infinite;
    position: relative;
}

.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Feature Cards */
.feature-card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: white;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.feature-icon i {
    font-size: 3rem;
    padding: 20px;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon i {
    background: var(--primary-color);
    color: white !important;
    transform: scale(1.1);
}

/* Pricing Cards */
.pricing-card {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    background: white;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.pricing-card.border-primary {
    border-color: var(--primary-color) !important;
    border-width: 3px !important;
}

.pricing-card.border-primary:hover {
    transform: translateY(-10px);
}

/* Toggle Mensal/Anual mais delicado */
.pricing-card .btn-group-sm {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.pricing-card:hover .btn-group-sm {
    opacity: 1;
}

.pricing-card .btn-group-sm .btn {
    border-width: 1px;
    font-weight: 400;
}

.price {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Navbar */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255,255,255,0.8) !important;
}

/* Modals */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 15px 15px 0 0;
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

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

/* Dashboard Styles */
.dashboard-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.tool-card {
    text-align: center;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tool-card:hover {
    background: rgba(13, 110, 253, 0.05);
    border-radius: 15px;
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* File Upload */
.file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(13, 110, 253, 0.05);
}

.file-upload-area.dragover {
    border-color: var(--success-color);
    background: rgba(25, 135, 84, 0.05);
}

/* Progress Bar */
.progress {
    height: 8px;
    border-radius: 10px;
    background: #e9ecef;
}

.progress-bar {
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 400px;
        text-align: center;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .feature-icon i {
        font-size: 2rem;
    }
    
    .pricing-card.border-primary {
        transform: none;
    }
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-soft {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08) !important;
}

.shadow-medium {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.shadow-strong {
    box-shadow: 0 20px 40px rgba(0,0,0,0.2) !important;
}
