/**
 * Theme Name: Odoo Integration
 * Author: Brainstorm Force
 * Description: Modern light theme with enhanced navbar and login styling
 * Version: 1.0.0
 * Template: astra
 */

/* ====================== MODERN NAVBAR STYLING - LIGHT GRADIENT ====================== */

/* Main nav background - elegant light gradient */
.main-header-bar,
.site-header,
#masthead {
     background: linear-gradient(135deg, #D07F37 0%, #ffffff 40%, #263C75 100%)  !important;
/* Orange → White → Blue */
/* Orange to Blue - very bold and modern */
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03), 0 1px 0 rgba(37, 99, 235, 0.12) !important;
    border-bottom: none !important;
}

/* Nav container */
.main-header-bar {
    padding: 4px 50px !important;
    min-height: 74px !important;
    display: flex !important;
    align-items: center !important;
}

/* Logo / Site Title - Modern Gradient Text */
.site-title a,
.site-branding .site-title a,
.custom-logo-link,
.ast-site-identity .site-title a {
    background: linear-gradient(135deg, #1e40af, #3b82f6) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-size: 30px !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
    text-decoration: none !important;
    padding: 8px 0 !important;
}

.site-title a:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Logo image adjustment */
.custom-logo,
.site-branding img,
.ast-site-identity img,
.site-header img.custom-logo {
    max-height: 80px !important;
    height: 60px !important;
    width: auto !important;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.05)) !important;
}

.site-branding img {
    max-height: 48px !important;
    width: auto !important;
}

/* Navigation menu container */
.main-navigation .menu {
    gap: 7px !important;
    display: flex !important;
}

/* Nav links - Modern Pill Style navbar items styling */
.main-navigation a,
.main-header-bar-navigation a,
#site-navigation a {
    color: #475569 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    padding: 8px 22px !important;
    border-radius: 40px !important;
    letter-spacing: -0.2px !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
}

/* Nav links hover */
.main-navigation a:hover,
.main-header-bar-navigation a:hover,
#site-navigation a:hover {
    color: #2563eb !important;
    background: rgba(37, 99, 235, 0.08) !important;
    transform: translateY(-1px) !important;
}

/* Active / current page link - Gradient Blue */
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-header-bar-navigation .current-menu-item > a,
#site-navigation .current-menu-item > a {
    color: white !important;
    background: linear-gradient(135deg, #2563eb, #1e40af) !important;
    border-radius: 40px !important;
    padding: 8px 24px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
}

/* Active link hover */
.main-navigation .current-menu-item > a:hover,
#site-navigation .current-menu-item > a:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e3a8a) !important;
    transform: translateY(-1px) !important;
}

/* ====================== NAVBAR LAYOUT ====================== */

.main-header-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.ast-site-identity {
    margin-right: auto !important;
    padding-right: 0 !important;
}

.main-header-bar-navigation {
    margin-left: auto !important;
    margin-right: 0 !important;
}

.ast-flex-center {
    justify-content: space-between !important;
}

.ast-header-custom-item {
    flex: unset !important;
}

/* ====================== MOBILE NAVBAR ====================== */
@media (max-width: 768px) {

    .main-header-bar {
        padding: 8px 20px !important;
        min-height: 62px !important;
    }

    .site-title a {
        font-size: 20px !important;
    }

    .menu-toggle {
        background: rgba(37, 99, 235, 0.08) !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        padding: 7px 12px !important;
        color: #1e293b !important;
    }

    .main-navigation .menu,
    .main-navigation ul {
        background: white !important;
        border-radius: 20px !important;
        margin-top: 12px !important;
        box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.12) !important;
        border: 1px solid #e2e8f0 !important;
    }

    .main-navigation a,
    #site-navigation a {
        padding: 14px 20px !important;
        border-bottom: 1px solid #f1f5f9 !important;
        border-radius: 0 !important;
    }
    
    .main-navigation a:hover {
        background: #f8fafc !important;
    }
}

/* ====================== TIMESHEET FORM STYLING ====================== */
.timesheet-wrapper {
    max-width: 1000px;
    margin: 60px auto;
    padding: 40px 35px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}
.timesheet-title {
    text-align: center;
    color: #1e3a8a;
    font-size: 28px;
    margin-bottom: 35px;
    font-weight: 600;
}
.timesheet-message {
    padding: 16px 20px;
    margin-bottom: 25px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    font-size: 16px;
}
.timesheet-message.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #34d399;
}
.timesheet-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #f87171;
}
.form-group {
    margin-bottom: 24px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 18px;
}
.form-control {
    width: 100% !important;
    padding: 14px 16px !important;
    border: 2px solid #d1d5db !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    background: #fff !important;
    color: #1f2937 !important;
    line-height: 1.5 !important;
}
.form-control:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15) !important;
    outline: none !important;
}
select.form-control {
    height: 50px !important;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23374151' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592c.858 0 1.318 1.013.753 1.658L8.753 11.14a.5.5 0 0 1-.753 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
}
.submit-button {
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}
.submit-button:hover {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    transform: translateY(-2px);
}

/* ====================== MY ACTIVITY PAGE STYLES ====================== */
.activity-wrapper {
    width: 100%;
    max-width: none;
    margin: 40px auto;
    padding: 35px 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.activity-title {
    text-align: center;
    color: #1e3a8a;
    font-size: 35px;
    margin-bottom: 10px;
    font-weight: 600;
}
.activity-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 30px;
    font-size: 25px;
}
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.filter-tab {
    padding: 10px 24px;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}
.filter-tab:hover {
    background: #e2e8f0;
}
.filter-tab.active {
    background: #2563eb;
    color: white;
}
.activity-table-container {
    overflow-x: auto;
}
.activity-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}
.activity-table th {
    background: #f8fafc;
    padding: 18px 14px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
    font-size: 25px;
}
.activity-table td {
    padding: 18px 14px;
    border-bottom: 1px solid #e2e8f0;
    color: #1f2937;
    vertical-align: middle;
}
.activity-table td:nth-child(1) {
    white-space: nowrap;
    font-weight: 500;
    font-size: 20px;
}
.activity-table td:nth-child(2) {
    min-width: 180px;
    font-weight: 500;
    font-size: 20px;
}
.activity-table td:nth-child(3) {
    min-width: 160px;
    font-size: 20px;
}
.activity-table td:nth-child(4) {
    min-width: 250px;
    font-size: 20px;
}
.activity-table td:nth-child(5) {
    text-align: center;
    font-weight: 600;
    min-width: 90px;
    font-size: 20px;
}
.activity-table td:nth-child(6) {
    text-align: center;
    min-width: 110px;
    font-size: 20px;
}
.activity-table tr:last-child td {
    border-bottom: none;
}
.status-badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    min-width: 95px;
    letter-spacing: 0.4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}
.status-badge.draft {
    background-color: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
    font-size: 20px;
}
.status-badge.validated {
    background-color: #d1fae5;
    color: #166534;
    border: 1px solid #86efac;
    font-weight: 700;
    font-size: 20px;
}
.status-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* ====================== EMPLOYEE LOGIN PAGE - MODERN REDESIGN ====================== */
.login-wrapper {
    max-width: 460px;
    width: 90%;
    margin: 80px auto;
    padding: 48px 40px;
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.login-wrapper h2 {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    text-align: center;
}

.login-wrapper > p:first-of-type {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 32px;
    text-align: center;
}

.login-form .form-group {
    margin-bottom: 24px;
    text-align: left;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
    letter-spacing: -0.2px;
}

.login-form input[type="text"],
.login-form input[type="email"] {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    font-size: 15px;
    background: #fafcff;
    color: #1f2937;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.login-form input[type="text"]:focus,
.login-form input[type="email"]:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    outline: none;
    background: #ffffff;
}

.login-button {
    width: 100%;
    padding: 14px 28px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.login-button:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.login-wrapper p[style*="color:red"],
.login-wrapper .error-message {
    background: #fef2f2;
    color: #dc2626 !important;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid #fecaca;
    margin: 20px 0 0;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
}



/* Login page icon - optional decorative element */
/*.login-wrapper::before {*/
/*    content: "👤 ";*/
/*    font-size: 48px;*/
/*    display: block;*/
/*    margin-bottom: 16px;*/
/*}*/



/* Responsive */
@media (max-width: 768px) {
    .timesheet-wrapper {
        margin: 15px;
        padding: 25px 20px;
    }
    
    .activity-wrapper {
        margin: 15px;
        padding: 20px;
    }
   
    .activity-table th,
    .activity-table td {
        padding: 12px 8px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .login-wrapper {
        margin: 40px 16px;
        padding: 36px 24px;
        width: auto;
    }
    
    .login-wrapper h2 {
        font-size: 26px;
    }
}

/* Make logo non-clickable */
.custom-logo-link,
.site-branding a {
    pointer-events: none !important;
    cursor: default !important;
}

