/* Global Variables for colors and design */
:root {
    --primary-color: #F3F4F6; /* Lighter background */
    --secondary-color: #E5E7EB; /* Lighter gray */
    --accent-color: #4CAF50; /* Fresh green */
    --dark-color: #2C3E50; /* Dark blue/gray */
    --text-color: #2E3A46; /* Text color */
    --background-gradient: linear-gradient(135deg, #F3F4F6, #E5E7EB);
    --box-shadow-color: rgba(0, 0, 0, 0.15);
    --border-radius: 10px;
    --transition-speed: 0.3s;
    --font-family: 'Roboto', sans-serif;

    /* New modern variables */
    --gradient-primary: linear-gradient(135deg, #4CAF50, #2E7D32);
    --gradient-dark: linear-gradient(135deg, #2C3E50, #1A2530);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --border-radius-sm: 6px;
    --border-radius-md: 10px;
    --border-radius-lg: 20px;
}

/* Body Styling */
body {
    font-family: var(--font-family);
    background: var(--background-gradient);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

/* Profile Form Container */
.profile-form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Custom Card Styling */
.custom-card {
    background-color: #FFFFFF;
    border-radius: var(--border-radius);
    box-shadow: 0px 4px 12px var(--box-shadow-color);
    padding: 30px;
    transition: transform var(--transition-speed);
}

    .custom-card:hover {
        /* Removed the translateY effect that was causing clickability issues */
        transform: none;
        box-shadow: 0px 6px 15px var(--box-shadow-color);
    }

.card-title {
    /*color: var(--dark-color);*/
    font-weight: 600;
    font-size: 1.8rem;
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        font-size: 16px;
        font-weight: 500;
        color: var(--dark-color);
        display: block;
        margin-bottom: 8px;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: var(--border-radius);
        font-size: 16px;
        color: var(--text-color);
        background-color: #fafafa;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            border-color: var(--accent-color);
            outline: none;
        }

    .form-group textarea {
        resize: vertical;
    }

/* Checkbox Styling */
.form-check-input {
    width: 20px !important;
    height: 20px !important;
    margin-top: 0.3rem;
    margin-right: 0.5rem;
    cursor: pointer;
}

/* Button Styles */
.btn-custom {
    background-color: var(--accent-color);
    color: #fff;
    border-radius: var(--border-radius);
    padding: 12px 24px;
    box-shadow: 0px 4px 8px var(--box-shadow-color);
    transition: all var(--transition-speed);
    border: none;
    font-weight: 600;
}

    .btn-custom:hover {
        background-color: #388E3C; /* Darker green */
        box-shadow: 0px 6px 12px var(--box-shadow-color);
    }
.btn-outline-custom {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 15px;
    margin: 0;
    border: 1px solid var(--accent-color);
    background-color: transparent;
    color: var(--accent-color);
    border-radius: 8px;
    transition: background-color 0.2s ease;
    font-weight: 500;
    text-decoration: none;
}

/* Smaller action buttons in grid */
.table .btn-outline-custom.btn-sm {
    display: inline-block;
    width: auto;
    text-align: center;
    padding: 4px 8px;
    font-size: 0.75rem;
}


    .btn-outline-custom:hover {
        background-color: var(--dark-color);
        color: #fff;
    }

/* Specific color for Delete button */
.button-container .btn-delete {
    background-color: #FF4C4C; /* Red for Delete */
    color: #fff;
    border-radius: var(--border-radius);
    padding: 12px 24px;
    box-shadow: 0px 4px 8px var(--box-shadow-color);
    font-weight: 600;
    transition: all var(--transition-speed);
}

    .button-container .btn-delete:hover {
        background-color: #D94B4B; /* Darker red */
        box-shadow: 0px 6px 12px var(--box-shadow-color);
    }

/* Modify hover effect for other buttons */
.button-container a:hover {
    background-color: var(--accent-color);
    color: #fff;
    text-decoration: none;
}


/* Form Action Button (Submit button for profile creation) */
#submit-profile {
    background-color: var(--accent-color); /* Green */
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: var(--border-radius);
    box-shadow: 0px 4px 8px var(--box-shadow-color);
    transition: all var(--transition-speed);
}

    #submit-profile:hover {
        background-color: #388E3C; /* Darker green */
        box-shadow: 0px 6px 12px var(--box-shadow-color);
    }

/* Link Styling */
a {
    color: var(--dark-color);
    text-decoration: none;
}

    a:hover {
        color: var(--accent-color);
        text-decoration: underline;
    }

/* Footer Styling */
.footer-custom {
    background-color: var(--dark-color);
    color: #fff;
    text-align: center;
    padding: 20px;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

/* Footer Links Styling */
.footer-custom a {
    color: #fff;
    text-decoration: none;
}

.footer-custom a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Feature Item Styling */
.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 10px;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color);
    padding: 15px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    color: #fff;
}

.feature-item p {
    font-weight: 500;
    color: var(--text-color);
    max-width: 250px;
    text-align: center;
}

.profile-form-container {
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

.custom-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary-custom {
    background: #4a90e2;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
}

    .btn-primary-custom:hover {
        background: #357ab8;
    }

.btn-table-action {
    margin-right: 6px;
    text-decoration: none;
    color: #007bff;
}

    .btn-table-action:hover {
        text-decoration: underline;
    }

.table th, .table td {
    vertical-align: middle;
}


/* Responsive Styles */
@media (max-width: 768px) {
    .btn-custom, .btn-outline-custom, #submit-profile {
        width: 100%;
        margin-bottom: 10px;
    }

    .custom-card {
        padding: 20px;
    }

    .feature-item p {
        font-size: 0.9rem;
        max-width: 200px;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }

    .btn-lg {
        font-size: 16px;
    }
}


/* Flexbox container for button group */
.button-container {
    display: flex;
    justify-content: space-between;
    gap: 10px; /* Space between buttons */
    margin-top: 10px;
    flex-wrap: wrap; /* Allow wrapping of buttons on smaller screens */
}

    /* Ensure buttons don't overflow and are responsive */
    .button-container a {
        flex: 1 1 100px; /* Allow buttons to shrink and grow but not be smaller than 100px */
        text-align: center;
        min-width: 120px; /* Minimum width to avoid buttons becoming too small */
        padding: 8px 16px; /* Adjust padding to fit better */
        box-sizing: border-box; /* Ensure padding does not increase the element width */
    }

/* Add responsiveness to make buttons adapt better on smaller screens */
@media (max-width: 768px) {
    .button-container a {
        flex: 1 1 45%; /* Buttons take up 45% of the width each */
        margin-bottom: 10px; /* Space between buttons */
    }
}

/* Modern Landing Page Styles */

/* Hero Section */
.hero-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(76, 175, 80, 0.05) 0%, rgba(44, 62, 80, 0.05) 100%);
    z-index: 0;
}

.hero-bg-animation:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.1) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.min-vh-80 {
    min-height: 80vh;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.floating-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.pulse-btn {
    position: relative;
}

.pulse-btn:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background-color: inherit;
    opacity: 0.6;
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.05);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Feature Cards */
.feature-card {
    background-color: #fff;
    border-radius: var(--border-radius-md);
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    z-index: -1;
}

.feature-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    margin-bottom: 20px;
    color: white;
    font-size: 24px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.feature-card p {
    color: #6c757d;
    margin-bottom: 0;
}

/* Stats Section */
.bg-gradient-custom {
    background: var(--gradient-primary);
}

.stat-card {
    color: white;
    padding: 20px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 36px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* Testimonial Cards */
.testimonial-card {
    background-color: #fff;
    border-radius: var(--border-radius-md);
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-rating {
    color: #FFD700;
    margin-bottom: 15px;
    font-size: 18px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #495057;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 15px;
}

/* Pricing Cards */
.pricing-card {
    background-color: #fff;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
    border: 2px solid var(--accent-color);
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    font-size: 14px;
    font-weight: 600;
    border-bottom-left-radius: var(--border-radius-sm);
}

.pricing-header {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.pricing-header h3 {
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--dark-color);
}

.pricing-price {
    font-size: 18px;
    color: #495057;
}

.pricing-price .currency {
    font-size: 24px;
    font-weight: 600;
    vertical-align: top;
    line-height: 1;
}

.pricing-price .amount {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.pricing-price .period {
    font-size: 16px;
    color: #6c757d;
}

.pricing-features {
    padding: 30px;
}

.pricing-features ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.pricing-features ul li i {
    margin-right: 10px;
}

.pricing-action {
    padding: 0 30px 30px;
}

/* FAQ Accordion */
.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: var(--border-radius-md) !important;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.accordion-button {
    padding: 20px;
    font-weight: 600;
    color: var(--dark-color);
    background-color: #fff;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    color: var(--accent-color);
    background-color: rgba(76, 175, 80, 0.05);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(76, 175, 80, 0.1);
}

.accordion-body {
    padding: 20px;
    background-color: #fff;
}

/* Utility Classes */
.bg-custom-light {
    background-color: rgba(76, 175, 80, 0.1);
}

.text-accent {
    color: var(--accent-color);
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .min-vh-80 {
        min-height: auto;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 40px 0;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }
}
