:root{
    --main-color: #169931;
}
.table > tbody > tr > td {
   background-color: unset !important;
   vertical-align: middle !important;
}
.bg-main {
    background-color: var(--main-color) !important;
}
.btn-main {
    padding: 0.5rem 1rem;
   border-left: 1px solid #ddd;
   border-right: 1px solid #ddd;
   border-radius: 8px;
   box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
   transition: all 0.3s ease;
   cursor: pointer;
    background-color: var(--main-color);
    border: 1px solid var(--main-color);
    color: white;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
}
.btn-main:hover {
    background-color: #fff;
    border: 1px solid var(--main-color);
    color: var(--main-color);
}

#guestLoginModal .modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.15);
    background: #fff;
}

#guestLoginModal .modal-header {
    background: var(--main-color);
    color: white;
    border-radius: 12px 12px 0 0;
    border: none;
    padding: 1.5rem 2rem;
}

#guestLoginModal .modal-title {
    font-family: Poppins;
    font-weight: 600;
    font-size: 1.25rem;
}

#guestLoginModal .btn-close {
    filter: invert(1);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#guestLoginModal .btn-close:hover {
    opacity: 1;
}

#guestLoginModal .modal-body {
    padding: 2rem;
    background: #fff;
}

#guestLoginModal .modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

/* Social Login Buttons */
#guestLoginModal .btn-outline-danger {
    border: 2px solid #dc3545;
    color: #dc3545;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: Poppins;
}

#guestLoginModal .btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

#guestLoginModal .btn-outline-primary {
    border: 2px solid #0d6efd;
    color: #0d6efd;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: Poppins;
}

#guestLoginModal .btn-outline-primary:hover {
    background-color: #0d6efd;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* Google User Modal Styles */
#googleUserModal .modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.15);
    background: #fff;
}

#googleUserModal .modal-header {
    background: var(--main-color);
    color: white;
    border-radius: 12px 12px 0 0;
    border: none;
    padding: 1.5rem 2rem;
}

#googleUserModal .modal-title {
    font-family: Poppins;
    font-weight: 600;
    font-size: 1.25rem;
}

#googleUserModal .btn-close {
    filter: invert(1);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#googleUserModal .btn-close:hover {
    opacity: 1;
}

#googleUserModal .modal-body {
    padding: 2rem;
    background: #fff;
}

#googleUserModal .modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

#googleUserModal .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

#googleUserModal .form-control,
#googleUserModal .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

#googleUserModal .form-control:focus,
#googleUserModal .form-select:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 0 0.2rem rgba(22, 153, 49, 0.25);
}

#googleUserModal .form-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Form Elements */
#guestLoginModal .form-label {
    font-family: Poppins;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

#guestLoginModal .form-control,
#guestLoginModal .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-family: Poppins;
    transition: all 0.3s ease;
    background: #fff;
}

#guestLoginModal .form-control:focus,
#guestLoginModal .form-select:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 0 0.2rem rgba(22, 153, 49, 0.25);
    outline: none;
}

#guestLoginModal .form-control::placeholder {
    color: #6c757d;
    font-family: Poppins;
}

/* Primary Button */
#guestLoginModal .btn-primary {
    background-color: var(--main-color);
    border: 2px solid var(--main-color);
    color: white;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-family: Poppins;
    transition: all 0.3s ease;
}

#guestLoginModal .btn-primary:hover {
    background-color: var(--main-color);
    border-color: var(--main-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 153, 49, 0.3);
}

#guestLoginModal .btn-secondary {
    background-color: #6c757d;
    border: 2px solid #6c757d;
    color: white;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-family: Poppins;
    transition: all 0.3s ease;
}

#guestLoginModal .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Divider Styling */
#guestLoginModal .position-relative hr {
    border: none;
    height: 1px;
    background:  #a8a8a8;
}

#guestLoginModal .position-absolute.top-50.start-50.translate-middle {
    background: #fff;
    padding: 0 1rem;
    color: #6c757d;
    font-weight: 500;
    font-family: Poppins;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #guestLoginModal .modal-body {
        padding: 1.5rem;
    }

    #guestLoginModal .modal-footer {
        padding: 1rem 1.5rem;
    }

    #guestLoginModal .d-md-flex {
        flex-direction: column;
    }

    #guestLoginModal .btn-lg {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Loading Spinner Styles */
#loadingSpinner {
    margin-left: 8px;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button disabled state */
#guestLoginModal .btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

#trendChart {
    width: 100% !important;
    height: 400px !important;
    max-height: 400px;
}

.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
}
.score-container-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px auto;

}
.score-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.score-wrapper img {
    width: 180px;
    height: 180px;
}
.score-wrapper-content{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.score-content-answer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 30px;
    text-align: center;
    line-height: 1;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    padding: 0;
    top: 38px;
    position: absolute;
}

.score-content-answer.quality{
    color: #e11f26;
}
.score-content-answer.familiarity {
    color: #133c8a;
}
.score-content-answer.affordability {
    color: #007236;
}
.score-content-answer.availability {
    color: #0092c8;
}
.score-content-title {
    font-size: 16px;
    font-weight: 800;
    color: white;
    margin: 0;
    padding: 0;
    top: 72px;
    position: absolute;
    text-transform: uppercase;
}
.score-content-percentage {
    font-size: 22px;
    font-weight: 600;
    color: white;
    margin: 0;
    padding: 0;
    bottom: 32px;
    position: absolute;
}
