:root {
    --primary-color: #526ff8;
    --primary-dark: #3a56d4;
    --secondary-color: #7209b7;
    --success-color: #4cc9f0;
    --danger-color: #f72585;
    --warning-color: #ff9e00;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --border-radius: 12px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f5f7fb;
}
main .container{
    min-width: 100vw !important;
    padding: 0;
}

nav .container{
    max-width: 92vw !important;
    margin: auto !important;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--gray-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.btn {
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn i {
    font-size: 1.1em;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    transition: .4s;
}

.btn-primary:hover {
    background: rgb(37, 86, 184);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.3);
    transition: .4s;
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    transition: .4s;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    transition: .4s;
}

.btn-success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #27ae60, #219653);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    transform: translateY(-2px);
}

.btn-light {
    background: white;
    color: var(--dark-color);
    border: 1px solid #dee2e6;
}

.btn-light:hover {
    background: #f8f9fa;
    color: var(--dark-color);
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.form-control {
    border-radius: var(--border-radius);
    border: 2px solid #e1e5eb;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
    background-color: white;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
    outline: none;
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

.form-control.is-valid {
    border-color: #2ecc71;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    width: min-content;
    white-space: nowrap;
}

.form-text {
    color: var(--gray-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.invalid-feedback {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
}

.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    background: white;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    margin: 60px auto 50px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: var(--primary-color);
    color: white;
    border-bottom: none;
    padding: 0.25rem 3.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    width: max-content;
}
.cab-card-header{
    background: var(--primary-color);
    color: white !important;
    border-bottom: none;
    padding: 0.25rem 3.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    width: max-content;
}
.cab-card-header h5{
    color: white;
}
.card-header h2{
    font-size: 28pt;
    color: white;
}

.card-body {
    padding: 1.5rem;

}
.reg{
    width: 70vw;
    margin: 0 auto;
}
.card-body-reg {
    padding: 1.5rem;
    width: 100%;

}
#login-form{
    gap: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
#register-form{
    gap: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

#register-form .form-group{
    display: flex;
    flex-direction: column;
    width: auto;
}

#login-form .form-group button{
    width: 100% !important;
}
.card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e1e5eb;
    padding: 1rem 1.5rem;
}
.navbar {
    background: white !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    padding-top: 0;
    font-weight: 800;
    font-size: 2rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    font-size: 1.75rem;
}
.navbar-nav{
    gap: 10px;
}
.nav-link {
    font-weight: 600;
    color: var(--dark-color) !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-link:hover {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color) !important;
}

.nav-link.active {
    background: var(--primary-color);
    color: white !important;
}

.hero-section {
    padding: 5rem 4.3vw;
    background: linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.5)), url("../../web/media/bg.png");
    background-repeat: no-repeat;
    height: 100vh;
    margin: auto 0;
    box-sizing: border-box;
    display: flex;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    flex-direction: column;
    gap: 0;
    align-items: flex-start
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-color);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    margin-top: 2rem;
}

.hero-image img {
    max-width: 100%;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.features-section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.feature-card {
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-text {
    color: var(--gray-color);
    margin-bottom: 0;
}

.services-section {
    padding: 5rem 0;
}

.service-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-header {
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-icon.electricity {
    color: #f1c40f;
}

.service-icon.gas {
    color: #e74c3c;
}

.service-icon.water {
    color: #3498db;
}

.service-title {
    font-size: 1.75rem;
    margin-bottom: 0;
}

.service-body {
    padding: 2rem;
}

.service-price {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: var(--border-radius);
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2ecc71;
    font-weight: bold;
}

.how-it-works {
    padding: 5rem 0;
}

.step-card {
    padding: 2rem;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #0d6efd);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px dashed var(--primary-color);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.step-text {
    color: var(--gray-color);
}
.cta-section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,117.3C960,107,1056,149,1152,165.3C1248,181,1344,171,1392,165.3L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    pointer-events: none;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
}

.cta-text {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.table {
    overflow: hidden;
    box-shadow: var(--box-shadow);
    background: white;
    min-height: 100%;
    margin-bottom: 0;
}

.table thead th {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-color: #e1e5eb;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(67, 97, 238, 0.05);
}

.badge {
    padding: 0.5em 1em;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
}

.badge-primary {
    background: var(--primary-color);
    color: white;
}

.badge-success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.badge-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.badge-info {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--box-shadow);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.footer-title {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 1rem;
    }

    .table-responsive {
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
    }
}

.shadow-soft {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08) !important;
}

.shadow-medium {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
}

.shadow-hard {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

.rounded-xl {
    border-radius: 20px !important;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-block;
}

.status-new {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.status-accepted {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.status-error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.admin-card {
    border-left: 4px solid var(--primary-color);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-color);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reading-form {
    max-width: 600px;
    margin: 0 auto;
}

.calculation-box {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    border-left: 4px solid var(--primary-color);
}

.calculation-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.calculation-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #dee2e6;
}

.calculation-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--primary-color);
}

.footer{
    background: #267dfd;
    color: white;
    padding: 3rem 5vw 1.5rem
}

.f-text{
    color: white;
    font-weight: 700;
}
.txt-1 p{
    color: rgb(255, 255, 255);
}

.footer-bottom p{
    color: white;
}

.field-user-agree_terms{
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
}
.chekbox{
    display: flex;
}

.application-index{
    padding: 120px 7.4vw;
}
.application-create{
    padding: 110px;
}
#application-form{
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.site-login{
    padding-top: 110px;
    min-height: 100vh;
}
.site-register{
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 110px;
}
.log{
    width: 700px;
}

.application-index .page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f2f5;
}

.application-index .lead {
    color: var(--gray-color);
    font-size: 1.1rem;
    margin-bottom: 0;
}

.stat-card {
    border-radius: var(--border-radius);
    padding: 1.5rem;
    color: white;
    text-align: center;
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.stat-card.bg-gradient-success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.stat-card.bg-gradient-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.stat-card.bg-gradient-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.stat-content {
    flex-grow: 1;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-filters {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.table th i {
    margin-right: 0.5rem;
}

.table td {
    vertical-align: middle;
}

.first-table{
    display: flex !important;
    flex-direction: column;
}

.table-hover tbody tr:hover {
    background-color: rgba(67, 97, 238, 0.05);
    transform: scale(1.002);
    transition: transform 0.2s ease;
}

.badge-pill {
    padding: 0.5em 0.7em 0.5em 0.6em;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tips-list {
    padding-left: 0;
    list-style: none;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.tip-item i {
    margin-top: 0.25rem;
}

.application-create .form-label i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.select-service {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%234361ee' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 8px 10px;
    padding-right: 2rem;
}

.reading-unit {
    background: none !important;
    border: none;
    font-weight: 600;
    color: var(--dark-color);
    min-width: 70px;
    justify-content: center;
    padding: 0;
    margin: auto 0;
}

.last-reading-info {
    background-color: #e8f4fd;
    border-radius: var(--border-radius);
    padding: 0.75rem;
    font-size: 0.9rem;
}

.last-reading-info i {
    margin-right: 0.5rem;
}

.calculation-box {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary-color);
}

.calculation-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.calculation-grid {
    display: grid;
    gap: 0.75rem;
}

.calculation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    color: black;
    background: white;
    border-radius: calc(var(--border-radius) - 4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.calculation-item.calculation-total {
    background: white;
    border: 1px solid #a7e6b5;
}

.calculation-value {
    font-weight: 700;
    font-size: 1.1rem;
}

.profile-index .stat-item:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.profile-index .stat-item h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.profile-index .stat-item p {
    margin-bottom: 0;
    color: var(--gray-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-borderless td {
    border: none;
    padding: 0.75rem 0;
}

.table-borderless td:first-child {
    font-weight: 600;
    color: var(--dark-color);
    width: 200px;
}
.quick-actions .btn {
    text-align: left;
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.quick-actions .btn i {
    font-size: 1.1rem;
    width: 20px;
}

.card-header {
    background: var(--primary-color);
    border-bottom: 1px solid #e1e5eb;
    padding: 1.25rem 1.5rem;
}


.card-header-table {
    background: white;
    border-bottom: 1px solid #e1e5eb;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h5 {
    margin-bottom: 0;
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-header h5 i {
    color: var(--primary-color);
}

.card-body {
    padding: 1.5rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.form-control-lg {
    height: calc(1.5em + 1.5rem + 2px);
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
}
.input-group-prepend{
    display: flex;
    justify-content: center;
    align-items: center;
}
.input-group-append{
    display: flex;
    justify-content: center;
    align-items: center;
}
.input-group-text {
    background-color: rgb(255,255,255) !important;
    border-color: white;
    color: var(--gray-color);
    font-size: 1rem;
}

.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert i {
    font-size: 1.25rem;
}

h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

h1 i {
    font-size: 2.5rem;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.shadow-hard {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
}

.shadow-soft {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08) !important;
}

@media (max-width: 768px) {
    .page-header .text-right {
        text-align: left !important;
        margin-top: 1rem;
    }

    .stat-card {
        margin-bottom: 1rem;
    }

    .table-filters {
        justify-content: flex-start;
        margin-top: 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h1 i {
        font-size: 2rem;
    }

    .card-header h5 {
        font-size: 1.1rem;
    }
}

.admin-applications,
.admin-users {
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
    padding: 110px 7.4vw;
}

.admin-stat {
    border-radius: var(--border-radius);
    padding: 1.5rem;
    color: white;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.admin-stat::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.admin-stat:hover::before {
    right: 100%;
}

.admin-stat:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Таблицы админ-панели */
.table-admin th {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: var(--dark-color);
}

.table-admin td {
    vertical-align: middle;
    border-color: #e1e5eb;
}

.table-admin tbody tr {
    transition: all 0.2s ease;
}

.table-admin tbody tr:hover {
    background: linear-gradient(90deg, rgba(67, 97, 238, 0.05), transparent);
    transform: translateX(5px);
}

/* Статусные бейджи */
.status-badge {
    padding: 0.5em 1em;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
    justify-content: center;
}

/* Ссылки на пользователей */
.user-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.user-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.user-link::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Действия с таблицей */
.table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.table-actions .btn-group {
    flex-wrap: nowrap;
}

/* Фильтры */
.filter-card .form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Статистика по услугам */
.service-stats {
    display: grid;
    gap: 1rem;
}

.service-stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: white;
    border-radius: calc(var(--border-radius) - 4px);
    border: 1px solid #e1e5eb;
    transition: all 0.3s ease;
}

.service-stat-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.service-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.service-count .badge {
    font-size: 1rem;
    padding: 0.5em 1em;
}

/* Недавние заявки */
.recent-applications {
    display: grid;
    gap: 0.75rem;
}

.recent-application {
    display: grid;
    grid-template-columns: 2fr 1fr auto auto;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: calc(var(--border-radius) - 4px);
    border: 1px solid #e1e5eb;
    font-size: 0.9rem;
}

.recent-user {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recent-service {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recent-status .badge {
    font-size: 0.75rem;
    padding: 0.25em 0.75em;
}

.recent-date {
    color: var(--gray-color);
    font-size: 0.8rem;
}

/* Информация о пользователях */
.user-info {
    line-height: 1.4;
}

.user-name {
    font-weight: 600;
    color: var(--dark-color);
}

.contact-info, .address-info {
    line-height: 1.5;
    font-size: 0.9rem;
}

.contact-info i, .address-info i {
    width: 16px;
    text-align: center;
}

.application-stats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.application-stats .badge {
    font-size: 0.8rem;
    padding: 0.25em 0.75em;
    display: inline-block;
    width: fit-content;
}

/* Топ пользователей */
.top-users {
    display: grid;
    gap: 0.75rem;
}

.top-user-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: calc(var(--border-radius) - 4px);
    border: 1px solid #e1e5eb;
    transition: all 0.3s ease;
}

.top-user-item:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.top-user-rank .rank-badge {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.top-user-info {
    flex-grow: 1;
}

.top-user-name {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.top-user-stats .badge {
    font-size: 0.75rem;
    padding: 0.25em 0.75em;
}

.top-user-actions .btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* График */
.registration-chart {
    position: relative;
    height: 200px;
}

/* Уведомления */
.notification-alert {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.modal-admin .modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-admin .modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-bottom: none;
    padding: 1.5rem;
}

.modal-admin .modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

/* Адаптивность */
@media (max-width: 768px) {
    .admin-stat {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .stat-icon {
        font-size: 2rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .table-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
        margin-top: 1rem;
    }

    .recent-application {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .top-user-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .notification-alert {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

/* Дополнительные эффекты */
.highlight-new {
    animation: highlight 2s ease;
}

@keyframes highlight {
    0% { background-color: rgba(67, 97, 238, 0.3); }
    100% { background-color: transparent; }
}

.data-loading {
    position: relative;
    min-height: 200px;
}

.data-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: -20px 0 0 -20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.profile-index{
    padding: 120px 4.9vw;
}