/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Styles */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-brand h2 {
    color: #333;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #333;
    background-color: #f0f0f0;
}

.nav-link.active {
    color: #10b981;
    background-color: #ecfdf5;
}

.login-btn {
    background-color: #10b981;
    color: #ffffff;
    font-weight: 600;
}

.login-btn:hover {
    background-color: #059669;
    color: #ffffff;
}

/* Navbar User Info (shown after login) */
.nav-user-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nav-user-name {
    color: #10b981;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logout-btn {
    background-color: #ef4444;
    color: #ffffff;
    font-weight: 600;
    border: none;
    cursor: pointer;
    padding: 0.4rem 0.9rem;
    border-radius: 0.25rem;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.logout-btn:hover {
    background-color: #dc2626;
    color: #ffffff;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-dropdown {
    background-color: #ffffff;
    color: #333;
    border: 1px solid #d1d5db;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.language-dropdown:hover {
    border-color: #10b981;
    box-shadow: 0 1px 3px 0 rgba(16, 185, 129, 0.2);
}

.language-dropdown:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.language-dropdown:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

.language-dropdown option {
    background-color: #ffffff;
    color: #333;
    padding: 0.5rem;
}

/* Language Info Display */
.language-info {
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: #f0fdf4;
    border-radius: 0.5rem;
    border: 1px solid #bbf7d0;
}

.language-label {
    font-size: 0.9rem;
    color: #374151;
    font-weight: 500;
}

#selected-language {
    font-weight: bold;
    color: #10b981;
}

/* Page Navigation */
.page {
    display: none;
    min-height: calc(100vh - 80px);
    padding: 2rem 0;
}

.page.active {
    display: block;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.p-2 {
    padding: 0.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.rounded {
    border-radius: 0.25rem;
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.border {
    border: 1px solid #d1d5db;
}

.flex {
    display: flex;
}

.justify-center {
    justify-content: center;
}

.gap-4 {
    gap: 1rem;
}

/* Button Styles */
.bg-blue-500 {
    background-color: #3b82f6;
}

.bg-green-800 {
    background-color: #166534;
}

.bg-green-600 {
    background-color: #16a34a;
}

.bg-white-500 {
    background-color: #ffffff;
}

.text-white {
    color: #ffffff;
}

.text-black {
    color: #000000;
}

.text-lg {
    font-size: 1.125rem;
}

.font-semibold {
    font-weight: 600;
}

.hover\:bg-blue-600:hover {
    background-color: #2563eb;
}

.hover\:bg-green-600:hover {
    background-color: #16a34a;
}

button {
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.show {
    display: flex;
    opacity: 1;
}

.popup-content {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.popup-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.popup-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-weight: 500;
    min-width: 80px;
}

.popup-btn:not(.delete-btn):not(.cancel-btn) {
    background-color: #3b82f6;
    color: white;
}

.delete-btn {
    background-color: #ef4444;
    color: white;
}

.cancel-btn {
    background-color: #6b7280;
    color: white;
}

/* Toast Messages */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
}

.toast {
    background-color: #ffffff;
    color: #333;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 0.5rem;
    border-left: 4px solid #10b981;
    min-width: 300px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.success {
    border-left-color: #10b981;
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.warning {
    border-left-color: #f59e0b;
}

.toast.info {
    border-left-color: #3b82f6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.9rem;
    }

    .login-btn {
        padding: 0.35rem 0.7rem;
    }

    .nav-user-info {
        gap: 0.4rem;
    }

    .nav-user-name {
        max-width: 100px;
        font-size: 0.85rem;
    }

    .logout-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .page {
        padding: 1rem 0;
    }
    
    .popup-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    #toast-container {
        left: 20px;
        right: 20px;
    }
    
    .toast {
        min-width: auto;
    }
}

/* Loading Spinner */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    font-size: 1.1rem;
    color: #666;
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top: 2px solid #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Prevent translation of specific elements */
.notranslate {
    translate: no !important;
}

.notranslate * {
    translate: no !important;
}

/* Hide Google Translation Bar */
.goog-te-banner-frame,
.goog-te-ftab {
    display: none !important;
}

body {
    top: 0px !important;
}

/* Alternative method - hide Google Translate elements */
#google_translate_element,
.skiptranslate,
.goog-tooltip,
.goog-tooltip:hover,
.goog-text-highlight {
    display: none !important;
}

/* Prevent body margin adjustment when Google Translate is active */
body.translated-ltr {
    margin-top: 0px !important;
}

body.translated-rtl {
    margin-top: 0px !important;
}

/* Hide the Google Translate notification bar */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

/* Override any forced visibility */
.goog-te-banner-frame {
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
} 