/* Custom styles for the Monetization Toolkit */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

/* Navigation Styles */
.nav-btn {
    transition: all 0.2s ease-in-out;
    position: relative;
}

.nav-btn:hover {
    color: #ec4899 !important;
    transform: translateY(-1px);
}

.nav-btn.active {
    color: #ec4899 !important;
    font-weight: 600;
}

.nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #ec4899;
    border-radius: 1px;
}

/* Content Sections */
.content-section {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Hover Effects */
.hover-lift {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Pink Theme Variants */
.bg-pink-500 {
    background-color: #ec4899 !important;
}

.bg-pink-50 {
    background-color: #fdf2f8 !important;
}

.border-pink-200 {
    border-color: #fbcfe8 !important;
}

.text-pink-600 {
    color: #db2777 !important;
}

.text-pink-500 {
    color: #ec4899 !important;
}

.hover\:bg-pink-600:hover {
    background-color: #db2777 !important;
}

/* Teal Theme Variants */
.bg-teal-500 {
    background-color: #14b8a6 !important;
}

.bg-teal-50 {
    background-color: #f0fdfa !important;
}

.border-teal-200 {
    border-color: #99f6e4 !important;
}

.text-teal-600 {
    color: #0d9488 !important;
}

.text-teal-500 {
    color: #14b8a6 !important;
}

.hover\:bg-teal-600:hover {
    background-color: #0d9488 !important;
}

/* Chart Containers */
canvas {
    max-height: 300px;
}

/* Modal Animations */
#ad-modal,
#purchase-modal {
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#ad-modal > div,
#purchase-modal > div {
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Time Range Buttons */
.time-range-btn {
    transition: all 0.2s ease-in-out;
    border: none;
    cursor: pointer;
}

.time-range-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Form Styling */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

/* Button Animations */
button {
    transition: all 0.2s ease-in-out;
}

button:hover {
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* Loading Spinner */
.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ec4899;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

/* Table Styling */
table {
    border-collapse: collapse;
}

th {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

tr:hover {
    background-color: #f9fafb;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
    
    nav .hidden.md\\:flex {
        display: none;
    }
    
    .px-4 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ec4899;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #db2777;
}

/* Success/Error States */
.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Progress Bar */
.progress-bar {
    height: 4px;
    background-color: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ec4899, #14b8a6);
    transition: width 0.3s ease;
}