:root {
    --primary-color: #003366;
    --secondary-color: #FFC300;
    --accent-color: #00C4CC;
    --text-color: #333333;
    --bg-color: #F5F5F5;
    --border-color: #E5E5E5;
    --success-color: #28a745;
    --danger-color: #dc3545;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
}

body.has-navbar {
    padding-top: 70px;
}

/* Navbar Styles */
.navbar {
    background-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 600;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    padding: 15px 20px;
}

.card-body {
    padding: 20px;
}

/* Button Styles */
.btn {
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background-color: #004080;
    border-color: #004080;
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: #e6b000;
    border-color: #e6b000;
    color: var(--primary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Form Controls */
.form-control {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 196, 204, 0.25);
}

.form-control-lg {
    font-size: 1rem;
    padding: 12px 16px;
}

.input-group-text {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.action-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.action-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.action-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

/* Result Box */
.result-box {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    border-left: 5px solid var(--accent-color);
}

.price-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Configuration Items */
.config-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.config-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-color);
}

/* Tips Section */
.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px;
}

.tip-icon {
    font-size: 20px;
    color: var(--accent-color);
}

/* Payment Options */
.payment-option {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: var(--accent-color);
}

.payment-option.selected {
    border-color: var(--primary-color);
    background-color: rgba(0, 51, 102, 0.05);
}

.payment-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    cursor: pointer;
}

/* Setup Progress */
.setup-progress {
    margin-bottom: 30px;
}

.progress {
    background-color: var(--border-color);
    margin-bottom: 20px;
}

.progress-bar {
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: -14px;
}

.step {
    text-align: center;
    position: relative;
    width: 100px;
}

.step-number {
    width: 30px;
    height: 30px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.step.completed .step-number {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.step-label {
    font-size: 0.875rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Machine Selection */
.machines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.machine-option {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.machine-option:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.machine-option.selected {
    border-color: var(--primary-color);
    background-color: rgba(0, 51, 102, 0.05);
}

.machine-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.machine-icon i {
    font-size: 30px;
    color: var(--primary-color);
}

.machine-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.machine-content input[type="radio"] {
    margin: 10px 0;
}

/* Setup Success */
.setup-success {
    width: 80px;
    height: 80px;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.setup-success i {
    font-size: 40px;
    color: white;
}

/* Loading Spinner */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    opacity: 1;
}

.toast.success {
    border-left: 4px solid var(--success-color);
}

.toast.error {
    border-left: 4px solid var(--danger-color);
}

.toast .toast-body {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
}

.toast.success i {
    color: var(--success-color);
}

.toast.error i {
    color: var(--danger-color);
}

.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Pagamento */
.payment-page {
    background-color: var(--bg-color);
    min-height: 100vh;
}

.subscription-details {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.subscription-details .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.subscription-details .period {
    font-size: 0.875rem;
    font-weight: 400;
    color: #666;
}

#cardPaymentBrick_container {
    padding: 20px 0;
}

/* Admin Planos */
.admin-panel .price-tag {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.admin-panel .price-tag small {
    font-size: 0.875rem;
    color: #666;
}

.admin-panel .features {
    list-style: none;
    padding: 0;
}

.admin-panel .feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.admin-panel .feature-item i {
    color: var(--success-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .quick-actions {
        grid-template-columns: 1fr;
    }

    .machines-grid {
        grid-template-columns: 1fr;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .btn-lg {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .setup-progress {
        margin-bottom: 20px;
    }

    .step {
        width: 80px;
    }

    .step-number {
        width: 25px;
        height: 25px;
        font-size: 0.875rem;
    }

    .card-body {
        padding: 15px;
    }
}

/* Planos */
.register-page {
    background-color: var(--bg-color);
    min-height: 100vh;
}

.plan-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.plan-card.selected {
    border: 2px solid var(--primary-color);
    transform: translateY(-5px);
}

.plan-header {
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.plan-header h3 {
    margin: 0 0 16px;
    color: var(--primary-color);
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.plan-price .currency {
    font-size: 1rem;
    font-weight: 500;
    color: #666;
}

.plan-price .period {
    font-size: 0.875rem;
    font-weight: 400;
    color: #666;
}

.plan-body {
    padding: 24px;
    flex: 1;
}

.plan-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.875rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.875rem;
}

.plan-features i {
    color: var(--success-color);
}

.plan-footer {
    padding: 24px;
    border-top: 1px solid #eee;
}

.btn-select-plan {
    width: 100%;
    padding: 12px;
}

.register-form {
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sidebar */
.sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background-color: var(--primary-color);
    padding: 20px 0;
    color: white;
    z-index: 1000;
}

.sidebar .brand {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    padding: 0 20px 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.sidebar .nav-link i {
    font-size: 1.2rem;
}

.main-content {
    margin-left: 250px;
    padding: 30px;
    min-height: 100vh;
    background-color: var(--bg-color);
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    padding: 15px 20px;
}

/* Forms */
.form-control {
    border-radius: 0.25rem;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 196, 204, 0.25);
}

/* Buttons */
.btn {
    border-radius: 0.25rem;
}

/* Alerts */
.alert {
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

/* Table */
.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    background-color: #f8f9fa;
    font-weight: 500;
}

.table td {
    vertical-align: middle;
}

/* Badges */
.badge {
    padding: 0.5em 0.75em;
    font-weight: 500;
}

/* Utilities */
.bg-light {
    background-color: #f8f9fa !important;
}

.text-muted {
    color: #6c757d !important;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -250px;
        position: fixed;
        z-index: 1;
        height: 100%;
        transition: margin 0.3s ease-in-out;
    }

    .sidebar.show {
        margin-left: 0;
    }

    .main-content {
        margin-left: 0;
    }
}
