/* ===================================
   RESET E VARIÁVEIS
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #7c3aed;
    --primary-dark: #6d28d9;
    --secondary-color: #a78bfa;
    --accent-color: #10b981;
    --text-dark: #111827;
    --text-light: #4b5563;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* ===================================
   HEADER E NAVEGAÇÃO
   =================================== */
header {
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    color: white;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.logo img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.logo span {
    line-height: 1;
}

.logo:hover {
    opacity: 0.9;
}

/* Menu hamburguer (mobile) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

nav a:hover:not(.disabled) {
    border-bottom-color: white;
}

nav a.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.badge {
    font-size: 0.7rem;
    background-color: rgba(255, 255, 255, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    margin-left: 0.3rem;
}

/* ===================================
   CONTAINER E LAYOUT
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

main {
    min-height: calc(100vh - 200px);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero .subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.hero-chmod {
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 50%, #7c3aed 100%);
}

/* ===================================
   CARDS E GRID
   =================================== */
.tools-section {
    padding: 3rem 0;
}

.tools-section > .container > h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.tools-section > .container > p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tool-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
}

.tool-card:hover:not(.disabled) {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.tool-card.disabled {
    opacity: 1;
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #1f2937;
}

.tool-card.disabled h2,
.tool-card.disabled p,
.tool-card.disabled .card-icon {
    color: #374151;
}

.chmod-section {
    background: #f9fafb;
}

.chmod-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2rem;
    align-items: flex-start;
}

.permission-panel,
.result-panel {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.permission-grid {
    display: grid;
    grid-template-columns: 180px repeat(3, 1fr);
    gap: 0.5rem;
    margin: 1rem 0 1.5rem;
    align-items: center;
}

.permission-grid .grid-header {
    font-weight: 600;
    text-align: center;
    color: var(--text-dark);
}

.role-label {
    font-weight: 600;
    color: var(--text-dark);
}

.presets-inline {
    margin-bottom: 1.5rem;
}

.presets-inline h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.permission-subtitle {
    margin-top: 1rem;
}

.permission-toggle {
    position: relative;
    display: block;
    cursor: pointer;
}

.permission-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.permission-toggle .toggle-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    background: var(--bg-light);
    transition: var(--transition);
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    color: var(--text-light);
}

.permission-toggle input:checked + .toggle-indicator {
    border-color: var(--primary-color);
    background: #ede9fe;
    color: var(--primary-color);
    box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.3);
}

.special-bits {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.special-bits legend {
    padding: 0 0.5rem;
    font-weight: 600;
}

.special-bits label {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.95rem;
}

.result-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    flex-direction: column;
}

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

.result-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
}

.result-card input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: 'Courier New', Courier, monospace;
}

.result-card input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.result-card small {
    color: var(--text-light);
}

.command-output {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.command-output code {
    background: var(--bg-light);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.status-box {
    margin-top: 1.5rem;
    border-left: 4px solid var(--primary-color);
    background: var(--bg-white);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.chmod-table td {
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tool-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.tool-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.preset-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    background: var(--bg-white);
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.preset-card strong {
    color: var(--text-dark);
}

.preset-card span {
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.05em;
    color: var(--primary-color);
}

.preset-card:hover,
.preset-card:focus-visible {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.active {
    background-color: #34d399;
    color: #022c22;
}

.status-badge.upcoming {
    background-color: #f59e0b;
    color: #000000;
}

/* ===================================
   BOTÕES
   =================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-disabled {
    background-color: #d1d5db;
    color: #1f2937;
    border: 1px solid #6b7280;
    cursor: not-allowed;
}

/* ===================================
   SEÇÕES DE FERRAMENTAS
   =================================== */
.tool-section {
    background: var(--bg-white);
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.tool-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.tool-section h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--text-dark);
}

.tool-section p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* ===================================
   PRESETS RÁPIDOS
   =================================== */
.quick-presets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.preset-btn {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.preset-btn:hover {
    border-color: var(--primary-color);
    background-color: #f5f3ff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.preset-btn strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.preset-btn code {
    font-size: 1rem;
    color: var(--primary-color);
    background-color: transparent;
    padding: 0;
}

/* ===================================
   FORMULÁRIO CRONTAB
   =================================== */
.crontab-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-group select {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background-color: var(--bg-white);
    cursor: pointer;
    transition: var(--transition);
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* ===================================
   CAIXA DE RESULTADO
   =================================== */
.result-box {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-lg);
}

.result-box h3 {
    color: #e5e7eb;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.crontab-output {
    background-color: #000000;
    border: 2px solid #374151;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.crontab-output code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5rem;
    color: #10b981;
    background-color: transparent;
    padding: 0;
    display: block;
    word-break: break-all;
}

.copy-btn {
    background-color: var(--accent-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    width: 100%;
}

.copy-btn:hover {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===================================
   SEÇÃO EDUCATIVA
   =================================== */
.educational-section {
    background: var(--bg-white);
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.educational-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.educational-section h3 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    color: var(--text-dark);
}

.educational-section p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.educational-section code {
    background-color: #f3f4f6;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', Courier, monospace;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.command-block {
    display: block;
    background-color: #1f2937;
    color: #10b981;
    padding: 1rem;
    border-radius: var(--radius-md);
    margin: 1rem 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
}

/* ===================================
   TABELAS
   =================================== */
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
}

.cron-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-md);
}

.cron-table thead {
    background-color: var(--primary-color);
    color: white;
}

.cron-table th,
.cron-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cron-table th {
    font-weight: 600;
}

.cron-table tbody tr:hover {
    background-color: var(--bg-light);
}

/* ===================================
   LISTAS
   =================================== */
.symbols-list,
.tips-list {
    list-style: none;
    margin: 1.5rem 0;
}

.symbols-list li,
.tips-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
    line-height: 1.8;
}

.symbols-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.tips-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* ===================================
   EXEMPLOS
   =================================== */
.examples-list {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.example-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

.example-item code {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
}

.example-item p {
    color: var(--text-light);
    margin: 0;
}

/* ===================================
   FAQ
   =================================== */
.faq-section {
    background: var(--bg-white);
    padding: 3rem 0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.faq-list details {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-light);
    padding: 1rem 1.25rem;
    transition: var(--transition);
}

.faq-list details[open] {
    border-color: var(--primary-color);
    background: #f5f3ff;
    box-shadow: var(--shadow-sm);
}

.faq-list summary {
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

.faq-list p {
    margin-top: 0.75rem;
    color: var(--text-dark);
}

/* ===================================
   SOBRE
   =================================== */
.about-section {
    background: var(--bg-white);
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.about-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.about-section h3 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    color: var(--text-dark);
}

.about-section p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-section ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.about-section ul li {
    background: var(--bg-secondary);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    color: var(--text-light);
    line-height: 1.6;
    border-left: 3px solid var(--primary-color);
}

.about-section ul li strong {
    color: var(--text-dark);
}

/* ===================================
   ANÚNCIOS (PLACEHOLDERS)
   =================================== */
.ad-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    padding: 1rem;
}

.ad-slot {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: 600;
    text-align: center;
    padding: 1rem;
}

.ad-slot-top,
.ad-slot-bottom {
    width: 728px;
    height: 90px;
    max-width: 100%;
}

.ad-slot-middle {
    width: 300px;
    height: 250px;
    max-width: 100%;
}

/* ===================================
   COLAR EXPRESSÃO
   =================================== */
.paste-section {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
    border: 2px dashed var(--border-color);
}

.paste-input {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
    font-family: 'Courier New', Courier, monospace;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-white);
    transition: var(--transition);
}

.paste-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.paste-section .btn {
    margin-top: 1rem;
    width: 100%;
}

.learning-tip {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border-left: 4px solid #f59e0b;
    margin-top: 2rem;
    line-height: 1.8;
}

.learning-tip strong {
    color: #92400e;
    font-size: 1.1rem;
}

.reverse-section {
    background: var(--bg-light);
}

.crontab-description {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary-color);
}

.crontab-description p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.crontab-description strong {
    color: var(--primary-color);
    font-size: 1.15rem;
}

/* ===================================
   NOTIFICAÇÃO (TOAST)
   =================================== */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    z-index: 2000;
    animation: slideIn 0.3s ease;
}

.notification.show {
    display: flex;
}

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

/* ===================================
   FOOTER
   =================================== */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

footer p {
    margin: 0.5rem 0;
    opacity: 0.9;
}

footer a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: white;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.footer-nav a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: white;
}

/* ===================================
   RESPONSIVO (MOBILE-FIRST)
   =================================== */
@media (max-width: 768px) {
    /* Header Mobile Otimizado */
    header {
        padding: 0.5rem 0;
    }

    .header-content {
        position: relative;
    }

    .logo {
        font-size: 1.2rem;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    nav.active {
        max-height: 400px;
        opacity: 1;
        padding: 0.5rem 0;
    }

    nav a {
        width: 100%;
        padding: 0.75rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-left: none;
    }

    nav a:hover:not(.disabled) {
        background-color: rgba(255, 255, 255, 0.1);
        border-bottom-color: transparent;
    }

    nav a:last-child {
        border-bottom: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

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

    .crontab-form {
        grid-template-columns: 1fr;
    }

    .quick-presets {
        grid-template-columns: 1fr;
    }

    .notification {
        right: 10px;
        left: 10px;
        top: 80px;
    }

    .ad-slot-top,
    .ad-slot-bottom {
        width: 100%;
        height: auto;
        min-height: 90px;
    }

    .ad-slot-middle {
        width: 100%;
        height: auto;
        min-height: 250px;
    }

    .crontab-output code {
        font-size: 1.2rem;
    }

    .tool-section,
    .educational-section {
        padding: 2rem 0;
    }

    .cron-table {
        font-size: 0.9rem;
    }

    .cron-table th,
    .cron-table td {
        padding: 0.75rem;
    }

    .paste-input {
        font-size: 1rem;
    }

    .learning-tip {
        font-size: 0.95rem;
    }

    .chmod-layout {
        grid-template-columns: 1fr;
    }

    .permission-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .permission-grid .grid-header {
        display: none;
    }

    .permission-grid .role-label {
        grid-column: 1 / -1;
        margin-top: 1rem;
    }

    .command-output {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===================================
   BACKUP CALCULATOR STYLES
   =================================== */

.input-with-unit {
    display: flex;
    gap: 0.5rem;
}

.input-with-unit input {
    flex: 1;
}

.input-with-unit select {
    width: auto;
    min-width: 80px;
}

.backup-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.result-item {
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.result-item .label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: block;
}

.result-item .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.result-item.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
}

.result-item.highlight .label,
.result-item.highlight .value {
    color: white;
}

.cloud-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.cloud-option {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.cloud-option.selected {
    border-color: var(--primary-color);
    background: rgba(124, 58, 237, 0.1);
}

.cloud-option .provider-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.cloud-option .provider-price {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.strategy-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.strategy-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

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

.strategy-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.strategy-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.strategy-card.recommended {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.05);
}

.strategy-card.recommended::before {
    content: "✓ Recomendado";
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--success-color);
    margin-bottom: 0.5rem;
}

.backup-summary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 1.5rem;
}

.backup-summary h3 {
    color: white;
    margin-bottom: 1rem;
}

.backup-summary .summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.backup-summary .summary-item {
    text-align: center;
}

.backup-summary .summary-label {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.backup-summary .summary-value {
    font-size: 1.75rem;
    font-weight: 700;
}

.compression-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.compression-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

.compression-toggle label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 2.5rem 0;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .tool-card {
        padding: 1.5rem;
    }

    .result-box {
        padding: 1.5rem;
    }

    .crontab-output code {
        font-size: 1rem;
    }
    
    .backup-results {
        grid-template-columns: 1fr;
    }
    
    .result-item .value {
        font-size: 1.25rem;
    }
    
    .backup-summary .summary-value {
        font-size: 1.5rem;
    }
}
