/* style.css */
body { 
    font-family: 'Roboto', sans-serif; 
    background-color: #ffffff; 
    color: #1f2937; 
}

.noise-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"); 
    opacity: 0.02; 
    pointer-events: none; 
}

.glassmorphism { 
    background: rgba(243, 244, 246, 0.75); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
    border: 1px solid rgba(209, 213, 219, 0.5); 
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1); 
    border-radius: 0; 
}

.btn-primary { 
    background-color: #ef4444; 
    transition: background-color 0.3s ease; 
    color: #ffffff; 
    border-radius: 0.375rem; 
}
.btn-primary:hover { 
    background-color: #dc2626; 
}

.btn-secondary { 
    background-color: #6b7280; 
    color: white; 
    transition: background-color 0.3s ease; 
    border-radius: 0.375rem; 
}
.btn-secondary:hover { 
    background-color: #4b5563; 
}

.form-input { 
    background-color: #ffffff; 
    border-color: #d1d5db; 
    color: #1f2937; 
    border-radius: 0.375rem; 
}
.form-input.placeholder-active { 
    color: #9ca3af; 
}
.form-input:focus { 
    border-color: #ef4444; 
    box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.25); 
}

canvas { 
    display: block; 
    max-width: 100%; 
    height: auto; 
    border-radius: 0; 
    border: 2px solid #d1d5db; 
}

.header-gradient { 
    background-image: linear-gradient(to right, #dc2626, #b91c1c); 
}

#logoLink { 
    text-decoration: none; 
    transition: opacity 0.2s ease-in-out; 
}
#logoLink:hover { 
    opacity: 0.8; 
}

/* Modal Styles */
.modal { 
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.5); 
    padding-top: 20px; 
}
.modal-content { 
    background-color: #fefefe; 
    margin: auto; 
    padding: 20px; 
    border: 1px solid #888; 
    width: 90%; 
    max-width: 700px; 
    border-radius: 0; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); 
}
.modal-header { 
    padding-bottom: 10px; 
    border-bottom: 1px solid #e5e5e5; 
    font-size: 1.25rem; 
    font-weight: bold; 
    color: #1f2937; 
}
.modal-body { 
    padding-top: 15px; 
    padding-bottom: 15px; 
}
#croppingImageContainer { 
    width: 100%; 
    max-height: 60vh; 
    overflow: hidden; 
}
#croppingImage { 
    display: block; 
    max-width: 100%; 
}
.modal-footer { 
    padding-top: 15px; 
    border-top: 1px solid #e5e5e5; 
    display: flex; 
    justify-content: flex-end; 
    gap: 0.5rem; 
}
.modal-footer button { 
    padding: 0.5rem 1rem; 
}
.close-button { 
    color: #aaa; 
    float: right; 
    font-size: 28px; 
    font-weight: bold; 
    line-height: 1; 
}
.close-button:hover, 
.close-button:focus { 
    color: black; 
    text-decoration: none; 
    cursor: pointer; 
}

/* Action Buttons & Share Buttons Styling */
.action-buttons-container {
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 0.75rem; 
}
.share-buttons-group {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 0.75rem; 
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem; 
    border-radius: 0.375rem; 
    text-decoration: none;
    transition: opacity 0.2s ease-in-out;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1); 
}
.share-btn:hover {
    opacity: 0.8;
}
/* Styling for Font Awesome icons within share buttons */
.share-btn i {
    font-size: 1.25rem; /* Corresponds to fa-lg or Tailwind's text-xl */
    color: white; /* Ensures icons are white against colored backgrounds */
    line-height: 1; /* Helps with vertical alignment if needed */
}

.share-btn-x { background-color: #000000; } 
.share-btn-facebook { background-color: #1877F2; } 
.share-btn-linkedin { background-color: #0A66C2; } 
.share-btn-whatsapp { background-color: #25D366; }
.share-btn-viber { background-color: #7360F2; }
.share-btn-reddit { background-color: #FF4500; }


@media (min-width: 640px) { 
    .action-buttons-container {
        /* Styles for larger screens if needed, currently centered by mx-auto in HTML */
    }
}
