/* --- YouTube to PDF Converter Styles --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

.yt2p-wrapper {
    font-family: 'Roboto', sans-serif;
    background-color: #f1f1f1; /* YouTube Light Grey */
    padding: 30px; border-radius: 20px;
    margin: 40px auto; max-width: 700px;
}
.yt2p-container {
    background-color: #fff; border: 1px solid #ddd;
    border-radius: 12px; padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.yt2p-header { text-align: center; margin-bottom: 30px; }
.yt2p-header .fa-file-pdf { font-size: 2.5rem; color: #cc0000; /* YouTube Red */ margin-bottom: 10px; }
.yt2p-header h2 { font-size: 1.8rem; color: #030303; margin: 0 0 5px; }
.yt2p-header p { color: #606060; margin: 0; }

.yt2p-input-group { display: flex; align-items: center; border: 1px solid #ccc; border-radius: 8px; overflow: hidden; }
.yt2p-input-group .fa-youtube { font-size: 1.5rem; color: #cc0000; padding: 0 15px; }
.yt2p-input-group input {
    flex-grow: 1; padding: 12px 0; border: none; font-size: 1rem;
}
.yt2p-input-group input:focus { outline: none; }
.yt2p-btn {
    padding: 12px 20px; font-size: 1rem; font-weight: 500; text-decoration: none;
    color: #fff; background-color: #cc0000;
    border: none; cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
    transition: background-color 0.2s;
}
.yt2p-btn:hover { background-color: #990000; }
.yt2p-btn.download {
    width: 100%; justify-content: center; border-radius: 8px; margin-top: 15px;
    background-color: #28a745;
}
.yt2p-btn.download:hover { background-color: #218838; }

/* Process & Result */
#yt2p-process-block { margin-top: 25px; }
.yt2p-spinner-area { padding: 20px 0; color: #606060; font-weight: 500; }
.yt2p-spinner {
    border: 4px solid #f3f3f3; border-top: 4px solid #cc0000;
    border-radius: 50%; width: 36px; height: 36px; margin: 0 auto 10px;
    animation: yt2p-spin 1s linear infinite;
}
@keyframes yt2p-spin { to { transform: rotate(360deg); } }
#yt2p-preview-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
    margin-bottom: 15px;
}
.yt2p-preview-thumb {
    width: 100%; padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-size: cover; background-position: center;
    border-radius: 8px; border: 1px solid #ddd;
}
.yt2p-message { padding: 12px; margin-top: 15px; border-radius: 8px; background-color: #f8d7da; color: #721c24; text-align: center; }