/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f2f5; /* Light gray background */
    color: #333;
    line-height: 1.6;
}

.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #2c3e50; /* Darker heading color */
}

p {
    font-size: 1rem;
    color: #555;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    border-radius: 50px; /* Rounded buttons */
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: #007bff; /* Blue */
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn-success {
    background-color: #28a745; /* Green */
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn-info {
    background-color: #17a2b8; /* Cyan */
    border-color: #17a2b8;
}

.btn-info:hover {
    background-color: #138496;
    border-color: #117a8b;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn-danger {
    background-color: #dc3545; /* Red */
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn-outline-primary {
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Forms */
.form-control {
    border-radius: 10px; /* Rounded input fields */
    border: 1px solid #ced4da;
    padding: 10px 15px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075);
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Cards */
.card {
    border: none;
    border-radius: 15px; /* Rounded card corners */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08); /* Stronger shadow */
    overflow: hidden; /* Ensures content respects border-radius */
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 15px 20px;
    font-weight: 600;
    color: #2c3e50;
}

.card-body {
    padding: 25px;
}

/* Navbar */
.navbar {
    background-color: #ffffff; /* White background */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Subtle shadow */
    padding: 15px 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: #2c3e50 !important;
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 40px; /* Adjust as needed */
    margin-right: 10px;
}

.nav-link {
    font-weight: 500;
    color: #555 !important;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #007bff !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); /* Vibrant gradient */
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05); /* Subtle overlay */
    transform: rotate(45deg);
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.features-section h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
}

.feature-item {
    padding: 30px;
    border-radius: 15px;
    background-color: #f8f9fa; /* Lighter background for features */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); /* Enhanced shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    margin-bottom: 30px;
    height: 100%; /* Ensure equal height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3.5rem;
    color: #007bff; /* Icon color */
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.75rem;
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 1rem;
    color: #666;
}

/* Auth Pages (Login/Signup) */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px); /* Adjust for header/footer */
    background-color: #f0f2f5;
    padding: 30px 0;
}

.auth-card {
    max-width: 450px;
    width: 100%;
    padding: 40px;
    text-align: center;
}

.auth-card h2 {
    margin-bottom: 30px;
    font-size: 2rem;
}

.auth-card .btn-block {
    margin-top: 20px;
}

.auth-card hr {
    margin: 30px 0;
}

.password-criteria p {
    font-size: 0.85rem;
    margin-bottom: 5px;
    text-align: left;
}

.password-criteria .text-success {
    color: #28a745 !important;
}

.password-criteria .text-danger {
    color: #dc3545 !important;
}

/* Editor Page */
.tools-card {
    min-height: 600px;
}

.image-card {
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

.image-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e9ecef;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

#preview {
    max-width: 100%;
    max-height: 500px; /* Limit preview height */
    display: block;
    margin: auto;
}

.tab-content {
    padding-top: 20px;
}

.nav-pills .nav-link {
    border-radius: 10px;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

.nav-pills .nav-link.active,
.nav-pills .nav-link:hover {
    background-color: #007bff;
    color: white !important;
}

/* Footer */
.footer {
    background-color: #343a40; /* Dark footer */
    color: white;
    padding: 25px 0;
    text-align: center;
    margin-top: 50px;
}

.footer a {
    color: #007bff;
    margin: 0 10px;
}

.footer a:hover {
    color: #66b3ff;
}

/* Feedback Button */
.feedback-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.feedback-button:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .feature-item {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .features-section {
        padding: 50px 0;
    }
    .features-section h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    .feature-item {
        padding: 20px;
    }
    .feature-icon {
        font-size: 3rem;
    }
    .auth-card {
        padding: 30px;
    }
    .navbar-brand {
        font-size: 1.5rem;
    }
    .navbar-logo {
        height: 30px;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    .hero-section {
        padding: 60px 0;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 0.9rem;
    }
    .features-section h2 {
        font-size: 1.8rem;
    }
    .feature-item h3 {
        font-size: 1.5rem;
    }
    .feature-icon {
        font-size: 2.5rem;
    }
    .auth-card {
        padding: 20px;
    }
    .card-body {
        padding: 20px;
    }
}