/* Custom styling beyond Tailwind */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --apple-blue: #0071e3;
    --apple-gray: #f5f5f7;
    --apple-dark: #1d1d1f;
    --apple-error: #ff3b30;
    --apple-success: #34c759;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom form styling */
textarea, select, input {
    transition: all 0.2s ease;
}

/* Custom focus styling */
textarea:focus, select:focus, input:focus, button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2) !important;
}

/* Button hover effects */
button {
    transition: all 0.2s ease;
}

/* Toast notification styling */
.notification {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: bottom 0.3s ease-out, opacity 0.3s ease-out;
}

.notification.visible {
    bottom: 24px;
    opacity: 1;
}

.notification.success {
    background-color: var(--apple-success);
    color: white;
}

.notification.error {
    background-color: var(--apple-error);
    color: white;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .notification {
        width: 90%;
        text-align: center;
        justify-content: center;
    }
}

/* Custom card hover effects */
.bg-white {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bg-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.04);
}

/* Light scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

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

/* Dark mode theme toggler */
.theme-toggle-btn {
    cursor: pointer;
}

/* Dark mode styles */
.dark-mode {
    --apple-blue: #0a84ff;
    --apple-gray: #1c1c1e;
    --apple-dark: #f5f5f7;
    background-color: #000;
    color: #f5f5f7;
}

.dark-mode .bg-white {
    background-color: #1c1c1e !important;
    color: #f5f5f7;
}

.dark-mode .text-gray-700 {
    color: #ffffff !important;
}

.dark-mode .text-gray-500 {
    color: #e0e0e0 !important;
}

.dark-mode .border-gray-200,
.dark-mode .border-gray-300 {
    border-color: #38383a !important;
}

.dark-mode .bg-gray-50 {
    background-color: #2c2c2e !important;
}

.dark-mode input,
.dark-mode textarea,
.dark-mode select {
    background-color: #2c2c2e !important;
    color: #ffffff !important;
    border-color: #48484a !important;
}

.dark-mode ::placeholder {
    color: #a0a0a0 !important;
}

.dark-mode button#theme-toggle {
    color: #e0e0e0 !important;
}

.dark-mode button#theme-toggle:hover {
    color: #ffffff !important;
    background-color: #2c2c2e !important;
}

.dark-mode button#copy-btn {
    background-color: #383838 !important;
    color: #ffffff !important;
    border-color: #48484a !important;
}

.dark-mode button#copy-btn:hover {
    background-color: #424242 !important;
}

.dark-mode button#generate-btn {
    background-color: var(--apple-blue);
}

.dark-mode button#generate-btn:hover {
    background-color: #2490ff !important;
}

.dark-mode ::-webkit-scrollbar-track {
    background: #2c2c2e;
}

.dark-mode ::-webkit-scrollbar-thumb {
    background: #48484a;
}

.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #636366;
}

/* System preference dark mode - only applies if .light-mode is not present */
@media (prefers-color-scheme: dark) {
    body:not(.light-mode) {
        --apple-blue: #0a84ff;
        --apple-gray: #1c1c1e;
        --apple-dark: #f5f5f7;
        background-color: #000;
        color: #f5f5f7;
    }
    
    body:not(.light-mode) .bg-white {
        background-color: #1c1c1e !important;
        color: #f5f5f7;
    }
    
    body:not(.light-mode) .text-gray-700 {
        color: #ffffff !important;
    }
    
    body:not(.light-mode) .text-gray-500 {
        color: #e0e0e0 !important;
    }
    
    body:not(.light-mode) .border-gray-200,
    body:not(.light-mode) .border-gray-300 {
        border-color: #38383a !important;
    }
    
    body:not(.light-mode) .bg-gray-50 {
        background-color: #2c2c2e !important;
    }
    
    body:not(.light-mode) input,
    body:not(.light-mode) textarea,
    body:not(.light-mode) select {
        background-color: #2c2c2e !important;
        color: #ffffff !important;
        border-color: #48484a !important;
    }
    
    body:not(.light-mode) ::placeholder {
        color: #a0a0a0 !important;
    }
    
    body:not(.light-mode) button#theme-toggle {
        color: #e0e0e0 !important;
    }
    
    body:not(.light-mode) button#theme-toggle:hover {
        color: #ffffff !important;
        background-color: #2c2c2e !important;
    }
    
    body:not(.light-mode) button#copy-btn {
        background-color: #383838 !important;
        color: #ffffff !important;
        border-color: #48484a !important;
    }
    
    body:not(.light-mode) button#copy-btn:hover {
        background-color: #424242 !important;
    }
    
    body:not(.light-mode) button#generate-btn {
        background-color: var(--apple-blue);
    }
    
    body:not(.light-mode) button#generate-btn:hover {
        background-color: #2490ff !important;
    }
    
    body:not(.light-mode) ::-webkit-scrollbar-track {
        background: #2c2c2e;
    }
    
    body:not(.light-mode) ::-webkit-scrollbar-thumb {
        background: #48484a;
    }
    
    body:not(.light-mode) ::-webkit-scrollbar-thumb:hover {
        background: #636366;
    }
}

/* Theme toggle animation */
.sun-icon, .moon-icon {
    transition: opacity 0.2s ease, transform 0.3s ease;
}

.sun-icon.hidden, .moon-icon.hidden {
    opacity: 0;
    transform: scale(0.5);
    position: absolute;
}

.sun-icon:not(.hidden), .moon-icon:not(.hidden) {
    opacity: 1;
    transform: scale(1);
} 