/* Layout3 (Clean professional design) - scoped under .l3-* classes only */

/* Reset body margins for Layout3 only */
body {
    margin: 0;
    padding: 0;
}

.l3-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
}

/* Header with Large Logo */
.l3-header {
    background: linear-gradient(359deg, var(--primary-green, #8DC63F) 0%, #2d5a27 100%);
    border-bottom: 1px solid #e9ecef;
    padding: 0.3rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.l3-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.l3-logo-section {
    display: flex;
    align-items: center;
}

.l3-logo {
    height: 100px;
    width: auto;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5),
                0 0 60px rgba(255, 255, 255, 0.3),
                0 10px 40px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6))
            drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.l3-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.6),
                0 0 80px rgba(255, 255, 255, 0.4),
                0 15px 50px rgba(0, 0, 0, 0.5);
}

/* Navigation */
.l3-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.l3-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.l3-nav-item {
    position: relative;
}

.l3-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

    .l3-nav-link:hover {
        background-color: rgb(255, 255, 255);
        color: var(--primary-green, #8DC63F);
        transform: translateY(-1px);
    }

.l3-nav-link.active {
    background-color: white;
    color: var(--primary-green, #8DC63F);
    font-weight: 600;
}

.l3-nav-link i {
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

/* User Section */
.l3-user-section {
    display: flex;
    align-items: center;
}

.l3-user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.l3-user-info {
    display: flex;
    align-items: center;
}

.l3-user-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.l3-user-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.l3-user-link i {
    font-size: 1.2rem;
}

.l3-user-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.l3-user-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.l3-action-form {
    display: inline-block;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}

.l3-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: white !important;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    border: none !important;
    background: none !important;
    background-color: transparent !important;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    box-shadow: none !important;
}

.l3-action-btn:hover,
button.l3-action-btn:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    transform: translateY(-1px);
}

/* Ensure button elements match anchor styling */
button.l3-action-btn {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    color: white !important;
    box-shadow: none !important;
}

.l3-action-btn i {
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.l3-action-text {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Show text only on hover for action buttons */
.l3-action-btn .l3-action-text {
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.l3-action-btn:hover .l3-action-text {
    opacity: 1;
    transform: translateX(0);
}

/* Always show user name */
.l3-user-name {
    opacity: 1;
    transform: translateX(0);
}

/* Main Content */
.l3-main {
    flex: 1;
    padding: 2rem 0;
    background-color: #ffffff;
}

/* Footer */
.l3-footer {
    background: linear-gradient(135deg, var(--primary-green, #8DC63F) 0%, #2d5a27 100%);
    border-top: 1px solid #e9ecef;
    padding: 2rem 0 1rem;
    margin-top: auto;
    margin-bottom: 0;
}

.l3-footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 3rem;
    margin-bottom: 1.5rem;
    align-items: start;
}

.l3-footer-logo {
    margin-bottom: 1rem;
    text-align: center;
}

.l3-footer-section:first-child .l3-footer-logo {
    text-align: center;
}

.l3-footer-logo-img {
    height: 70px;
    width: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: white;
    padding: 4px;
    transition: transform 0.3s ease;
}

.l3-footer-logo-img:hover {
    transform: scale(1.05);
}

.l3-footer-section:first-child {
    text-align: right;
    justify-self: start;
}

.l3-footer-section:first-child p {
    text-align: center;
}

.l3-footer-section:nth-child(2) {
    text-align: center;
}

.l3-footer-section:last-child {
    text-align: center;
    justify-self: end;
}

.l3-footer-section h5,
.l3-footer-section h6 {
    color: white;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.l3-footer-section:first-child h5 {
    text-align: center;
}

.l3-footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.l3-footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.l3-footer-section ul li {
    margin-bottom: 0.5rem;
}

.l3-footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.l3-footer-section ul li a:hover {
    color: white;
}

.l3-footer-bottom {
    text-align: center;
    padding-top: 1rem;
    padding-bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .l3-header-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .l3-nav {
        width: 100%;
    }
    
    .l3-nav-list {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .l3-logo {
        height: 80px;
        padding: 15px;
        border-radius: 100px;
    }
}

@media (max-width: 768px) {
    .l3-header {
        padding: 1rem 0;
    }
    
    .l3-logo-section {
        justify-content: center;
    }
    
    .l3-logo {
        height: 70px;
    }
    
    .l3-nav-list {
        gap: 0.5rem;
    }
    
    .l3-nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .l3-main {
        padding: 1rem 0;
    }
    
    .l3-footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .l3-footer-section:first-child,
    .l3-footer-section:nth-child(2),
    .l3-footer-section:last-child {
        text-align: center;
    }
    
    .l3-footer-section:first-child .l3-footer-logo {
        text-align: center;
    }
    
    .l3-footer-logo-img {
        height: 60px;
    }
}

@media (max-width: 576px) {
    .l3-nav-list {
        flex-direction: column;
        width: 100%;
    }
    
    .l3-nav-link {
        justify-content: center;
        padding: 0.75rem;
    }
    
    .l3-logo {
        height: 60px;
        padding: 10px;
        border-radius: 100px;
    }
}
