/* 
 * Text to PDF Converter – DozeGear
 * Main Stylesheet
 */

.text-to-pdf-converter {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 20px;
    box-sizing: border-box;
}

.ttp-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 40px;
    transition: all 0.3s ease;
}

.ttp-title {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 30px 0;
    text-align: center;
    line-height: 1.3;
    position: relative;
    padding-bottom: 15px;
}

.ttp-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.ttp-textarea-container {
    margin-bottom: 25px;
    position: relative;
}

.ttp-text-input {
    width: 100%;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    line-height: 1.6;
    color: #2c3e50;
    background: #f8f9fa;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 200px;
    box-sizing: border-box;
    font-family: inherit;
}

.ttp-text-input:focus {
    outline: none;
    border-color: #3498db;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.ttp-text-input::placeholder {
    color: #95a5a6;
    opacity: 0.8;
}

.ttp-character-count {
    text-align: right;
    margin-top: 8px;
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
}

.ttp-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.ttp-convert-btn {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

.ttp-convert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
    background: linear-gradient(135deg, #2980b9, #27ae60);
}

.ttp-convert-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.2);
}

.ttp-convert-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ttp-loader {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #3498db;
    font-weight: 500;
}

.ttp-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e9ecef;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: ttp-spin 1s linear infinite;
}

@keyframes ttp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ttp-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-weight: 500;
    display: none;
}

.ttp-message.success {
    background: #d5edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.ttp-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.ttp-footer {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
}

.ttp-note {
    color: #7f8c8d;
    font-size: 14px;
    margin: 0;
    font-style: italic;
}

.ttp-note a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.ttp-note a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .text-to-pdf-converter {
        padding: 20px 15px;
    }
    
    .ttp-container {
        padding: 30px 25px;
    }
    
    .ttp-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .ttp-convert-btn {
        padding: 14px 30px;
        font-size: 16px;
        min-width: 180px;
    }
    
    .ttp-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .ttp-convert-btn {
        width: 100%;
    }
    
    .ttp-loader {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .ttp-container {
        padding: 25px 20px;
    }
    
    .ttp-title {
        font-size: 22px;
    }
    
    .ttp-text-input {
        padding: 15px;
        font-size: 15px;
    }
    
    .ttp-convert-btn {
        padding: 14px 20px;
        font-size: 16px;
    }
}

/* Print Styles */
@media print {
    .text-to-pdf-converter {
        display: none;
    }
}