/* Custom styles for the RPP Maker */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
}

/* Dark mode toggle switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* RPP table styles */
.rpp-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.rpp-table th, .rpp-table td {
    border: 1px solid #e2e8f0;
    padding: 0.75rem;
    text-align: left;
}

.rpp-table th {
    background-color: #f7fafc;
    font-weight: 600;
}

.dark .rpp-table th {
    background-color: #2d3748;
}

.dark .rpp-table th, .dark .rpp-table td {
    border-color: #4a5568;
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    .no-print {
        display: none !important;
    }

    #rppResult {
        box-shadow: none;
        padding: 0;
        margin: 0;
    }

    @page {
        size: A4;
        margin: 20mm;
    }
}

/* Animation for page transitions */
.fade-enter-active, .fade-leave-active {
    transition: opacity 0.3s;
}
.fade-enter, .fade-leave-to {
    opacity: 0;
}