/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
header {
    background-color: #0056b3;
    color: white;
    padding: 20px 10%;
    text-align: center;
    position: relative;
}

header img {
    width: 200px;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    background-color: white;
    padding: 10px;
    border-radius: 8px;
}

header h1 {
    margin-bottom: 10px;
    font-size: 2.5em;
}

header p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

/* Navigation Styles */
nav {
    text-align: center;
    margin-bottom: 20px;
}

nav a {
    margin: 0 10px;
    color: white;
    text-decoration: underline;
    font-weight: bold;
}

nav a:hover {
    text-decoration: none;
}

/* Main Content Styles */
main {
    padding: 20px 10%;
    flex: 1;
}

h2 {
    color: #0056b3;
    margin-bottom: 10px;
}

/* Service and About Me Styles */
.service, .about-me {
    border: 2px solid #0056b3;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: #fff;
}

.about-me {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
}

.about-me .mobile-image {
    display: none;
    width: 100%;
    text-align: center;
}

.about-me .desktop-image {
    margin-left: 20px;
    flex-shrink: 0;
}

.about-me img {
    width: 250px;
    height: auto;
    border-radius: 50%;
}

.about-me .caption {
    text-align: center;
    font-size: 0.9em;
    margin-top: 10px;
    color: #555;
}

.about-me .text {
    flex: 1;
}

.about-me .bookmark-button {
    display: block;
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1em;
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
}

.about-me .bookmark-button:hover {
    background-color: #003d80;
}

/* Footer Styles */
footer {
    background-color: #0056b3;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: auto;
}

footer a {
    color: #ffcc00;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Utility Classes */
.clear {
    clear: both;
}

.about-me p, .service p {
    margin-bottom: 15px;
}

/* Testimonial Styles */
.testimonial {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 4px solid #0056b3;
    border-radius: 5px;
}

.testimonial blockquote {
    margin: 0;
    font-style: italic;
    color: #555;
}

.testimonial-footer {
    margin-top: 10px;
    font-weight: bold;
    font-size: 0.9em;
}

.testimonial-footer a {
    color: #0056b3;
    text-decoration: none;
}

.testimonial-footer a:hover {
    text-decoration: underline;
}

/* Tool Container Styles */
.tool-container {
    max-width: 800px;
    margin: 0 auto 20px;
}

/* Form Styles */
.form-label {
    font-weight: bold;
    color: #0056b3;
}

.form-control, .form-select {
    border: 1px solid #0056b3;
    border-radius: 5px;
    padding: 8px;
}

.form-text {
    color: #555;
    font-size: 0.9em;
}

.form-control:focus, .form-select:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

/* Button Styles */
.btn-primary {
    background-color: #0056b3;
    border: none;
}

.btn-primary:hover {
    background-color: #003d80;
}

.btn-outline-secondary {
    color: #0056b3;
    border-color: #0056b3;
}

.btn-outline-secondary:hover {
    background-color: #0056b3;
    color: white;
}

.btn-success {
    background-color: #28a745;
    border: none;
}

.btn-success:hover {
    background-color: #218838;
}

/* QR Code Styles */
#qrcode {
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.advanced-settings {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.advanced-settings.show {
    max-height: 500px;
}

.color-preview {
    width: 30px;
    height: 30px;
    display: inline-block;
    margin-left: 10px;
    border: 1px solid #dee2e6;
    vertical-align: middle;
}

.download-area {
    display: none;
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Image to Text Converter Styles */
.upload-container {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.upload-prompt {
    border: 2px dashed #0056b3;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.upload-prompt.dragover {
    background-color: rgba(0, 86, 179, 0.1);
    border-color: #003d80;
}

#upload-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
}

.upload-button {
    display: inline-block;
    background-color: #0056b3;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background-color 0.3s ease;
}

.upload-button:hover {
    background-color: #003d80;
}

.preview-container {
    width: 100%;
    height: 300px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f8f9fa;
    padding: 1rem;
    margin-bottom: 1rem;
}

.preview-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.result-container {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.text-content {
    background-color: #f8f8f8;
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 1rem;
    min-height: 100px;
    white-space: pre-wrap;
    max-height: 400px;
    overflow-y: auto;
}

/* Progress Bar Styles */
.progress-container {
    width: 100%;
    max-width: 400px;
    margin: 2rem auto;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #f3f3f3;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background-color: #0056b3;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

#progress-percentage {
    font-weight: bold;
    color: #0056b3;
}

/* Background Image Remover Styles */
.card {
    border: 2px solid #0056b3;
    border-radius: 15px;
    margin-bottom: 20px;
}

.card-header {
    background-color: rgba(0, 86, 179, 0.1);
    border-bottom: 1px solid #0056b3;
}

.form-range::-webkit-slider-thumb {
    background: #0056b3;
}

.form-range::-moz-range-thumb {
    background: #0056b3;
}

#resultPreview {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 8px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .col-md-6 {
        padding: 0 1rem;
    }
    
    .tool-container {
        padding: 15px 5%;
    }

    .about-me .mobile-image {
        display: block;
        margin-bottom: 20px;
    }

    .about-me .desktop-image {
        display: none;
    }
} 