@font-face {
    font-family: 'Blabeloo';
    src: url('fonts/Blabeloo-font-v.1.0.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #3d006e, rgba(61, 0, 110, 0.8));
    color: #fff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.mb-md-0 {
    font-family: 'Blabeloo', Arial, sans-serif;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    50% { transform: translate(80px, 80px); }
    100% { transform: translate(0, 0); }
}

.logo {
    position: relative;
    margin: 20px auto 5px auto;
    top: -20px;
}

.logo img {
    width: 200px;
    height: auto;
    max-width: 200px;
    transition: transform 0.3s ease;
    position: relative;
    right: 29%;
}

.logo img:hover {
    transform: scale(1.05);
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(218, 20, 108, 0.3);
    transition: transform 0.3s ease;
}

.login-container:hover {
    transform: translateY(-5px);
}

.login-container h2 {
    color: #f2bb36;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Blabeloo', Arial, sans-serif;
}

.login-container input,
.login-container button {
    padding: 12px;
    margin-bottom: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Cairo', sans-serif;
}

.login-container input {
    background: rgba(255, 255, 255, 0.9);
    color: #3d006e;
    transition: background 0.3s ease, transform 0.2s ease;
}

.login-container input:focus {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    outline: none;
}

.login-container input::placeholder {
    color: #7b04a2;
}

.login-container button {
    background: linear-gradient(45deg, #da146c, #7b04a2);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-container button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(218, 20, 108, 0.5);
}

.dashboard-container {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(218, 20, 108, 0.3);
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: #f2bb36;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-family: 'Cairo', sans-serif;
}

.nav-tabs {
    border-bottom: 2px solid #f2bb36;
}

.nav-tabs .nav-link {
    border: none;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    margin-right: 5px;
    transition: background 0.3s ease;
}

.nav-tabs .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-tabs .nav-link.active {
    background: linear-gradient(45deg, #da146c, #7b04a2);
    color: #fff;
    border: none;
}

.table-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(218, 20, 108, 0.3);
    overflow-x: auto;
}

.table {
    width: 100%;
    color: #fff;
}

.table th {
    background: linear-gradient(45deg, #da146c, #7b04a2);
    color: #fff;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.table td {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table th, .table td {
    padding: 12px;
    text-align: center;
    color: white;
}

.message-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(218, 20, 108, 0.3);
    margin-bottom: 20px;
    color: #fff;
}

.btn {
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, #da146c, #7b04a2);
    border: none;
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(218, 20, 108, 0.5);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
}

.btn-icon i {
    margin-left: 8px;
}

html[dir="rtl"] .btn-icon i {
    margin-left: 0;
    margin-right: 8px;
}

.status-badge {
    font-size: 0.9rem;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    color: #fff;
    font-weight: bold;
}

.status-badge.new {
    background: #04b1e2;
}

.status-badge.contacted {
    background: #f2bb36;
}

.status-badge.confirmed {
    background: #da146c;
}

.whatsapp-link {
    color: #25D366;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.whatsapp-link:hover {
    color: #f2bb36;
}

.last-contact {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.bg-light {
    color: black;
}

.modal-title {
    color: black;
}

label {
    color: black;
}

p {
    color: black;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 15px;
    }

    .login-container {
        margin: 80px 15px;
        padding: 20px;
    }

    .btn-group-mobile {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .btn-group-mobile .btn {
        width: 100%;
        margin: 0;
    }

    .card .row > .col-md-6,
    .card .row > .col-md-3 {
        margin-bottom: 15px;
    }

    .table-container {
        overflow-x: auto;
    }
}

@media (max-width: 576px) {
    .table th, .table td {
        font-size: 0.85rem;
        padding: 8px 4px;
    }

    .btn {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .status-badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }

    .login-container h2 {
        font-size: 1.5rem;
    }
}