/* Omnia Global Custom Theme for Zoho Desk Portal - Enhanced */

/* ===== FOUNDATION STYLES ===== */

/* Page Background - Add subtle pattern/gradient */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    color: #333333 !important;
    line-height: 1.6;
    background: #ffffff !important;
    font-size: 16px !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Add subtle background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(39, 174, 96, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(39, 174, 96, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Main content area with better contrast */
.main-content,
.content-wrapper,
.page-content {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 40px 20px !important;
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,0.9) !important;
    border-radius: 8px !important;
    margin-top: 20px !important;
}

/* ===== HEADER & NAVIGATION ===== */

/* Main Header - More Professional Look */
.header,
#header,
.top-header,
.site-header {
    background: #1a1a1a !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1) !important;
    border-bottom: none !important;
    padding: 0 !important;
    position: relative;
}

/* Add subtle green accent line */
.header::after,
#header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #27ae60, transparent);
    animation: shimmerSubtle 8s infinite;
}

@keyframes shimmerSubtle {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Logo Area Enhancement - Remove background for reverse logo */
.logo-container,
.brand-logo,
.header-logo,
.site-logo {
    padding: 10px 0 !important;
    display: inline-block;
    position: relative;
    background: transparent !important;
    box-shadow: none !important;
}

/* Clean logo display without background */
.logo-container img,
.brand-logo img,
.header-logo img,
.site-logo img,
img[alt*="logo"],
img[alt*="Logo"],
img[src*="logo"],
img[src*="Logo"] {
    max-height: 45px !important;
    width: auto !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Ensure header has proper padding and alignment */
.header .logo-container,
.header .brand-logo,
#header .logo-container {
    background: transparent !important;
    padding: 5px 0 !important;
    border-radius: 0 !important;
    display: inline-block !important;
    box-shadow: none !important;
    margin-left: 20px !important;
}

/* Navigation Enhancement */
.nav-menu,
.navigation,
.top-navigation,
.main-nav {
    background: transparent !important;
    padding: 0 !important;
}

.nav-menu a,
.navigation a,
.top-navigation a,
.main-nav a {
    color: #ffffff !important;
    font-weight: 500 !important;
    padding: 10px 20px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
    letter-spacing: 0.5px !important;
    position: relative;
}

.nav-menu a:hover,
.navigation a:hover,
.top-navigation a:hover,
.main-nav a:hover,
.nav-menu a.active,
.navigation a.active {
    color: #27ae60 !important;
    background: rgba(39, 174, 96, 0.1) !important;
}

/* Add underline effect on hover */
.nav-menu a::after,
.navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #27ae60;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover::after,
.navigation a:hover::after,
.nav-menu a.active::after {
    width: 80%;
}

/* Breadcrumb Fix for Dark Header */
.breadcrumb,
nav[aria-label="breadcrumb"],
.breadcrumb-container {
    background: rgba(0,0,0,0.3) !important;
    padding: 8px 20px !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.breadcrumb a,
.breadcrumb-item a,
nav[aria-label="breadcrumb"] a {
    color: #ffffff !important;
    opacity: 0.9;
    transition: all 0.3s ease;
    text-decoration: none !important;
    font-size: 14px !important;
}

.breadcrumb a:hover,
.breadcrumb-item a:hover {
    color: #27ae60 !important;
    opacity: 1;
}

.breadcrumb .separator,
.breadcrumb-item + .breadcrumb-item::before,
.breadcrumb > li + li:before {
    color: #ffffff !important;
    opacity: 0.5;
    content: "/" !important;
    padding: 0 10px !important;
}

/* ===== MAIN CONTENT AREA ===== */

/* Page Container */
.main-content,
.content-wrapper,
.page-content {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 40px 20px !important;
}

/* Sign In/Sign Up Pages - Premium Feel */
.signin-container,
.login-container,
.auth-container,
.signup-container {
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08) !important;
    padding: 50px 40px !important;
    max-width: 450px !important;
    margin: 60px auto !important;
    position: relative;
    overflow: visible;
    border: 1px solid #f0f0f0 !important;
}

/* Add floating effect on hover */
.signin-container:hover,
.login-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.12) !important;
    transition: all 0.4s ease;
}

/* Add subtle gradient accent at top */
.signin-container::before,
.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #27ae60, #1e8449);
    border-radius: 16px 16px 0 0;
}

/* Sign In heading styling */
.signin-container h1,
.signin-container h2,
.login-container h1,
.auth-container h1 {
    color: #1a1a1a !important;
    font-weight: 800 !important;
    margin-bottom: 30px !important;
    font-size: 32px !important;
    text-align: center !important;
}

h1 { 
    font-size: 36px !important; 
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
}

h2 { 
    font-size: 30px !important; 
    font-weight: 700 !important;
}

h3 { 
    font-size: 24px !important; 
    color: #27ae60 !important;
}

/* ===== FORMS & INPUTS ===== */

/* Modern Input Styling */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea,
select,
.form-control {
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 14px 16px !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    background: #fafafa !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

input:hover,
textarea:hover {
    border-color: #c0c0c0 !important;
    background: #ffffff !important;
}

input:focus,
textarea:focus,
select:focus,
.form-control:focus {
    border-color: #27ae60 !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(39,174,96,0.15) !important;
    background: #ffffff !important;
}

/* Input Labels */
label {
    color: #666666 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    margin-bottom: 8px !important;
    display: block !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* ===== BUTTONS ===== */

/* Primary Buttons - Green CTAs */
.btn-primary,
button[type="submit"],
.next-button,
.submit-btn,
input[type="submit"],
button.primary,
.action-button {
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%) !important;
    border: none !important;
    color: #ffffff !important;
    padding: 14px 32px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(39,174,96,0.3) !important;
    display: inline-block !important;
    text-align: center !important;
}

.btn-primary:hover,
button[type="submit"]:hover,
.next-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 25px rgba(39,174,96,0.4) !important;
    background: linear-gradient(135deg, #1e8449 0%, #27ae60 100%) !important;
}

.btn-primary:active,
button[type="submit"]:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 10px rgba(39,174,96,0.3) !important;
}

/* Secondary Buttons */
.btn-secondary,
button.secondary,
.outline-button {
    background: transparent !important;
    border: 2px solid #1a1a1a !important;
    color: #1a1a1a !important;
    padding: 12px 28px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.btn-secondary:hover {
    background: #1a1a1a !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
}

/* Browse Button Special Style */
.browse-button,
button.browse,
.browse-btn {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid rgba(255,255,255,0.8) !important;
    padding: 10px 24px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.browse-button:hover {
    background: rgba(255,255,255,0.1) !important;
    border-color: #27ae60 !important;
    color: #27ae60 !important;
    transform: translateY(-2px) !important;
}

/* ===== LINKS ===== */

a {
    color: #27ae60 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    font-weight: 500;
}

a:hover {
    color: #1e8449 !important;
    text-decoration: none !important;
}

/* Right Sidebar Links - Better Styling */
.sidebar-links,
.side-panel,
.right-panel {
    background: transparent !important;
    padding: 0 !important;
}

.sidebar-links h3,
.sidebar-links h4,
h3 a,
h4 a,
.side-panel h3,
.side-panel h4 {
    color: #1a1a1a !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    margin-bottom: 8px !important;
    position: relative;
    padding-left: 25px !important;
}

/* Add green accent mark before headings */
.sidebar-links h3::before,
.sidebar-links h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #27ae60;
    border-radius: 2px;
}

.sidebar-links p,
.side-panel p {
    color: #666666 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    padding-left: 25px !important;
}

/* Make the links look more like buttons */
.sidebar-links a,
.side-panel a {
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

.sidebar-links a:hover,
.side-panel a:hover {
    transform: translateX(5px) !important;
}

/* ===== CARDS & CONTAINERS ===== */

.card,
.ticket-card,
.article-card,
.content-box {
    background: #ffffff !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
    padding: 25px !important;
    margin-bottom: 20px !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.card:hover,
.ticket-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12) !important;
    transform: translateY(-4px) !important;
    border-color: #27ae60 !important;
}

/* Card with accent */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #27ae60, #1e8449);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

/* ===== TABLES ===== */

table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
}

thead {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
}

th {
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 15px !important;
    text-align: left !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

td {
    padding: 15px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    color: #333333 !important;
}

tbody tr {
    transition: all 0.3s ease !important;
}

tbody tr:hover {
    background: #f8f9fa !important;
}

tbody tr:last-child td {
    border-bottom: none !important;
}

/* ===== MESSAGES & ALERTS ===== */

.alert-success,
.success-message {
    background: linear-gradient(135deg, #d4edda 0%, #c3e8cd 100%) !important;
    border-left: 4px solid #27ae60 !important;
    color: #155724 !important;
    padding: 18px 20px !important;
    border-radius: 8px !important;
    margin: 20px 0 !important;
    box-shadow: 0 2px 10px rgba(39,174,96,0.1) !important;
}

.alert-error,
.alert-danger,
.error-message {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c2c7 100%) !important;
    border-left: 4px solid #dc3545 !important;
    color: #721c24 !important;
    padding: 18px 20px !important;
    border-radius: 8px !important;
    margin: 20px 0 !important;
    box-shadow: 0 2px 10px rgba(220,53,69,0.1) !important;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%) !important;
    border-left: 4px solid #17a2b8 !important;
    color: #0c5460 !important;
    padding: 18px 20px !important;
    border-radius: 8px !important;
    margin: 20px 0 !important;
}

/* ===== SEARCH BAR ===== */

.search-container {
    position: relative;
    margin: 20px 0;
}

.search-container input,
input[type="search"] {
    background: #ffffff !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 50px !important;
    padding: 12px 50px 12px 20px !important;
    font-size: 16px !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
}

.search-container input:focus {
    border-color: #27ae60 !important;
    box-shadow: 0 0 0 4px rgba(39,174,96,0.1) !important;
}

.search-button,
.search-icon {
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #27ae60 !important;
    background: none !important;
    border: none !important;
    font-size: 20px !important;
    cursor: pointer !important;
}

/* ===== FOOTER ===== */

.footer,
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
    color: #acacac !important;
    padding: 60px 0 30px !important;
    margin-top: 80px !important;
    border-top: 3px solid #27ae60 !important;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #27ae60, #1e8449, #27ae60);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.footer a,
footer a {
    color: #ffffff !important;
    transition: color 0.3s ease !important;
    text-decoration: none !important;
}

.footer a:hover,
footer a:hover {
    color: #27ae60 !important;
}

.footer h3,
.footer h4 {
    color: #ffffff !important;
    font-weight: 600 !important;
    margin-bottom: 20px !important;
}

/* ===== PAGINATION ===== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    color: #333333 !important;
    padding: 10px 16px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

.pagination a:hover {
    background: #27ae60 !important;
    color: #ffffff !important;
    border-color: #27ae60 !important;
    transform: translateY(-2px) !important;
}

.pagination .active,
.pagination .current {
    background: #27ae60 !important;
    color: #ffffff !important;
    border-color: #27ae60 !important;
}

/* ===== LOADING & SPINNERS ===== */

.spinner,
.loading,
.loader {
    border: 3px solid #f3f3f3 !important;
    border-top: 3px solid #27ae60 !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
}

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

/* ===== ANIMATIONS ===== */

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

.card,
.content-box,
.signin-container {
    animation: fadeIn 0.5s ease-out;
}

/* ===== MOBILE RESPONSIVE ===== */

@media (max-width: 768px) {
    .main-content,
    .content-wrapper {
        padding: 20px 15px !important;
    }
    
    .signin-container,
    .login-container {
        padding: 30px 20px !important;
        margin: 30px 15px !important;
    }
    
    .header {
        padding: 10px 15px !important;
    }
    
    h1 { font-size: 28px !important; }
    h2 { font-size: 24px !important; }
    h3 { font-size: 20px !important; }
    
    .btn-primary,
    .btn-secondary,
    button[type="submit"] {
        padding: 12px 24px !important;
        font-size: 14px !important;
    }
    
    .card,
    .content-box {
        padding: 20px 15px !important;
    }
    
    .nav-menu a,
    .navigation a {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
    
    table {
        font-size: 14px !important;
    }
    
    th, td {
        padding: 10px !important;
    }
    
    .footer {
        padding: 40px 15px 20px !important;
    }
}

/* ===== ZOHO DESK SPECIFIC OVERRIDES ===== */

/* Override any blue defaults */
*[style*="blue"],
*[style*="#007bff"],
*[style*="#0066cc"] {
    color: #27ae60 !important;
}

button[style*="blue"],
a[style*="blue"] {
    background: #27ae60 !important;
    border-color: #27ae60 !important;
}

/* Ensure Zoho navigation items align properly */
.zd-navbar {
    background: #1a1a1a !important;
}

.zd-navbar a {
    color: #ffffff !important;
}

.zd-navbar a:hover,
.zd-navbar a.active {
    color: #27ae60 !important;
    background: rgba(39,174,96,0.1) !important;
}

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

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

::-webkit-scrollbar-thumb {
    background: #27ae60;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e8449;
}
