/* Custom styles for ValidReach */

/* Global font family */
body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Login page styling */
.login-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    padding: 40px 15px;
}

.login-logo {
    display: block;
    margin: 0 auto 20px;
    width: 60px;
    height: auto;
}

.login-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 12px;
}

.login-subtitle {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin-bottom: 25px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin-bottom: 6px;
}

.login-form .form-control {
    padding: 10px 16px;
    font-size: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.login-form .form-control:focus {
    border-color: #5364F3;
    box-shadow: 0 0 0 0.2rem rgba(83, 100, 243, 0.25);
}

.login-form .password-field {
    position: relative;
}

.login-form .password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
}

.login-form .forgot-password {
    display: block;
    text-align: left;
    color: #5364F3;
    font-size: 14px;
    margin-top: 8px;
    text-decoration: none;
}

.login-form .forgot-password:hover {
    text-decoration: underline;
}

.login-form .btn-login {
    width: 100%;
    padding: 12px;
    background-color: #5364F3;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    margin-top: 20px;
    color: white;
}

.login-form .btn-login:hover {
    background-color: #4455e8;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.login-footer a {
    color: #5364F3;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Logo styling */
.navbar-brand img {
    height: 30px;
    width: auto;
    margin-right: 0.5rem;
}

.navbar-brand {
    color: #000 !important;
}

.navbar-brand > span {
    font-weight: 600;
}

.navbar-brand > span > span {
    font-weight: 700;
}

/* Dashboard credit counter */
.display-4 {
    font-weight: 700;
}

/* Text truncation for long URLs */
.text-truncate {
    max-width: 200px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

/* Card styling - removed hover animation effect */
.card {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Custom table styling */
.table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Badge styling */
.badge {
    font-size: 0.8rem;
    padding: 0.35em 0.65em;
}

/* Button spacing in groups */
.btn-group .btn {
    margin-right: 2px;
}

/* Footer positioning */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

/* API Key field */
#api_key:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

/* User dropdown in navbar */
.navbar-nav .dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Stripe payment button styling */
.btn-stripe {
    background-color: #0341dd;
    border-color: #0341dd;
    color: white;
}

.btn-stripe:hover {
    background-color: #0341dd;
    border-color: #0341dd;
    color: white;
}

/* Admin panel stats */
.card h3 {
    font-size: 2rem;
    font-weight: 700;
}

/* Mobile responsiveness adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .btn-group {
        display: flex;
        flex-direction: column;
    }
    
    .btn-group .btn {
        margin-bottom: 5px;
        margin-right: 0;
    }
}
