/* ============================================
   BUILDGRIDLAB - MAIN STYLESHEET
   Software Agency Website
   Brand Colors: #C8F20A (Green) | #012A5E (Navy)
   ============================================ */

/* ---------- GLOBAL RESET & TYPOGRAPHY ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", "Inter", "Outfit", sans-serif;
    overflow-x: hidden;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
}

/* ---------- BRAND COLOR CLASSES ---------- */
.bg-primary-green {
    background-color: #c8f20a !important;
}

.bg-dark-navy {
    background-color: #012a5e !important;
}

.bg-dark-bg {
    background-color: #081120 !important;
}

.bg-soft-light {
    background-color: #f5f7fa !important;
}

.text-primary-green {
    color: #c8f20a !important;
}

.text-dark-navy {
    color: #012a5e !important;
}

/* ---------- BUTTON STYLES ---------- */
.btn-primary-gradient {
    background: linear-gradient(135deg, #c8f20a 0%, #a0c808 100%);
    color: #012a5e;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(200, 242, 10, 0.3);
}

.btn-primary-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(200, 242, 10, 0.4);
    color: #012a5e;
    background: linear-gradient(135deg, #d4f535 0%, #b0d810 100%);
}

.btn-outline-green {
    background: transparent;
    color: #c8f20a;
    border: 2px solid #c8f20a;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.btn-outline-green:hover {
    background: #c8f20a;
    color: #012a5e;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(200, 242, 10, 0.3);
}

.btn-navy {
    background: #012a5e;
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
}

.btn-navy:hover {
    background: #c8f20a;
    color: #012a5e;
    transform: translateY(-3px);
}

/* ---------- NAVBAR STYLES ---------- */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.navbar-brand img {
    height: 45px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link {
    color: #012a5e !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #c8f20a !important;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #c8f20a;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 30px;
}

/* ---------- CARD STYLES ---------- */
.premium-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(200, 242, 10, 0.1);
    height: 100%;
}

.premium-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(200, 242, 10, 0.15);
    border-color: #c8f20a;
}

/* ---------- SECTION HEADINGS ---------- */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 42px;
    font-weight: 700;
    color: #012a5e;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #c8f20a;
    border-radius: 2px;
}

.section-title p {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 20px auto 0;
}

/* ---------- GLASSMORPHISM EFFECT ---------- */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(200, 242, 10, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* ---------- FORM STYLES ---------- */
.form-control {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #c8f20a;
    box-shadow: 0 0 0 3px rgba(200, 242, 10, 0.1);
    outline: none;
}

/* ---------- FOOTER STYLES ---------- */
.footer {
    background: #012a5e;
    color: #ffffff;
    padding: 70px 0 20px;
}

.footer h5 {
    color: #c8f20a;
    margin-bottom: 25px;
    font-weight: 600;
}

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

.footer a:hover {
    color: #c8f20a;
    padding-left: 5px;
}
/* ============================================
   DASHBOARD SPECIFIC STYLES
   ============================================ */

.dashboard-stats-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(200, 242, 10, 0.1);
    height: 100%;
}

.dashboard-stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(200, 242, 10, 0.1);
    border-color: #c8f20a;
}

/* Container padding fixes */
.container {
    padding-left: 15px;
    padding-right: 15px;
}

/* Row margin fixes */
.row {
    margin-left: -15px;
    margin-right: -15px;
}

.row > [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
}
/* ============================================
   PROFESSIONAL DROPDOWN STYLES
   ============================================ */

/* User Dropdown Button */
.btn-dropdown-user {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-dropdown-user:hover {
    background: rgba(200, 242, 10, 0.1);
}

.btn-dropdown-user .user-avatar {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #c8f20a 0%, #a0c808 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-dropdown-user .user-avatar span {
    color: #012a5e;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
}

.btn-dropdown-user .user-name {
    color: #012a5e;
    font-weight: 500;
    font-size: 14px;
}

.btn-dropdown-user .dropdown-icon {
    color: #012a5e;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.btn-dropdown-user[aria-expanded="true"] .dropdown-icon {
    transform: rotate(180deg);
}

/* Premium Dropdown Menu */
.premium-dropdown {
    min-width: 280px;
    padding: 12px 0;
    margin-top: 12px;
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    background: #ffffff;
    animation: dropdownFadeIn 0.3s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dropdown Header */
.premium-dropdown .dropdown-header {
    padding: 12px 20px;
    background: transparent;
}

.dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-user-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #c8f20a 0%, #a0c808 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-user-avatar span {
    color: #012a5e;
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
}

.dropdown-user-details {
    flex: 1;
}

.dropdown-user-name {
    color: #012a5e;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.dropdown-user-email {
    color: #666;
    font-size: 12px;
    word-break: break-all;
}

/* Dropdown Items */
.premium-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.premium-dropdown .dropdown-item:hover {
    background: linear-gradient(
        135deg,
        rgba(200, 242, 10, 0.1) 0%,
        rgba(200, 242, 10, 0.05) 100%
    );
    color: #c8f20a;
    padding-left: 24px;
}

.dropdown-icon-wrapper {
    width: 32px;
    height: 32px;
    background: #f5f7fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.dropdown-icon-wrapper i {
    color: #012a5e;
    font-size: 16px;
    transition: all 0.3s ease;
}

.premium-dropdown .dropdown-item:hover .dropdown-icon-wrapper {
    background: #c8f20a;
}

.premium-dropdown .dropdown-item:hover .dropdown-icon-wrapper i {
    color: #012a5e;
}

/* Dropdown Badge */
.dropdown-badge {
    margin-left: auto;
    background: #c8f20a;
    color: #012a5e;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
}

/* Divider */
.premium-dropdown .dropdown-divider {
    margin: 8px 0;
    border-top: 1px solid #f0f0f0;
}

/* Logout Item */
.logout-item {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
}

.logout-item:hover {
    background: rgba(220, 53, 69, 0.1) !important;
    color: #dc3545 !important;
}

.logout-item:hover .dropdown-icon-wrapper {
    background: #dc3545;
}

.logout-item:hover .dropdown-icon-wrapper i {
    color: white !important;
}

/* Responsive */
@media (max-width: 768px) {
    .btn-dropdown-user .user-name {
        display: none;
    }

    .btn-dropdown-user {
        padding: 5px 8px;
    }

    .premium-dropdown {
        min-width: 260px;
    }

    .dropdown-user-email {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
/* Navbar buttons */
.btn-outline-green {
    background: transparent;
    color: #c8f20a;
    border: 2px solid #c8f20a;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-outline-green:hover {
    background: #c8f20a;
    color: #012a5e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(200, 242, 10, 0.3);
}

.btn-primary-gradient {
    background: linear-gradient(135deg, #c8f20a 0%, #a0c808 100%);
    color: #012a5e;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(200, 242, 10, 0.4);
    background: linear-gradient(135deg, #d4f535 0%, #b0d810 100%);
}

.btn-navy {
    background: #012a5e;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
}

.btn-navy:hover {
    background: #c8f20a;
    color: #012a5e;
    transform: translateY(-2px);
}
/* ============================================
   PROFESSIONAL CHAT STYLES
   ============================================ */

/* Chat Container */
.chat-container {
    background: #f8f9fa;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
}

/* Chat Header */
.chat-header {
    background: linear-gradient(135deg, #012a5e 0%, #081120 100%);
    padding: 20px 25px;
    border-bottom: 3px solid #c8f20a;
}

.chat-header h4 {
    color: white;
    margin: 0;
    font-size: 18px;
}

.chat-header small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

/* Chat Messages Area */
.chat-messages {
    padding: 25px;
    max-height: 500px;
    overflow-y: auto;
    background: #f5f7fa;
}

/* Message Bubbles */
.message-bubble {
    margin-bottom: 25px;
    display: flex;
    animation: fadeInUp 0.3s ease;
}

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

.message-bubble.client {
    justify-content: flex-start;
}

.message-bubble.admin {
    justify-content: flex-end;
}

.message-content {
    max-width: 70%;
    padding: 15px 20px;
    border-radius: 20px;
    position: relative;
}

.message-bubble.client .message-content {
    background: white;
    border: 1px solid rgba(200, 242, 10, 0.3);
    border-radius: 20px 20px 20px 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.message-bubble.admin .message-content {
    background: linear-gradient(135deg, #c8f20a 0%, #a0c808 100%);
    color: #012a5e;
    border-radius: 20px 20px 5px 20px;
    box-shadow: 0 2px 10px rgba(200, 242, 10, 0.2);
}

.message-sender {
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 13px;
}

.message-bubble.client .message-sender {
    color: #012a5e;
}

.message-bubble.admin .message-sender {
    color: #012a5e;
}

.message-text {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.message-time {
    font-size: 10px;
    opacity: 0.7;
    text-align: right;
}

/* Reply Form */
.chat-reply {
    background: white;
    padding: 20px 25px;
    border-top: 1px solid #e0e0e0;
}

.chat-reply textarea {
    border-radius: 15px;
    border: 2px solid #e0e0e0;
    padding: 12px 18px;
    font-size: 14px;
    resize: none;
    transition: all 0.3s ease;
}

.chat-reply textarea:focus {
    border-color: #c8f20a;
    box-shadow: 0 0 0 3px rgba(200, 242, 10, 0.1);
    outline: none;
}

/* Badge Styles */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.badge-unread {
    background: #dc3545;
    color: white;
}

.badge-read {
    background: #ffc107;
    color: #000;
}

.badge-replied {
    background: #28a745;
    color: white;
}

/* Messages Table */
.messages-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.messages-table tbody tr {
    background: white;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.messages-table tbody tr:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.messages-table tbody tr.unread-row {
    background: linear-gradient(90deg, #fff3cd 0%, white 100%);
    border-left: 4px solid #c8f20a;
}

.messages-table td {
    padding: 15px;
    vertical-align: middle;
    border: none;
}

/* Notification Badge in Navbar */
.notification-badge {
    background: #dc3545;
    color: white;
    border-radius: 50px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .message-content {
        max-width: 85%;
    }

    .chat-messages {
        padding: 15px;
    }

    .message-text {
        font-size: 13px;
    }
}
/* Button group responsive */
@media (max-width: 576px) {
    .btn-primary-gradient,
    .btn-outline-green {
        padding: 8px 16px;
        font-size: 12px;
    }

    .dashboard-stats-card {
        padding: 15px;
    }

    .dashboard-stats-card i {
        font-size: 30px !important;
    }

    .dashboard-stats-card h3 {
        font-size: 22px !important;
    }
}
