/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Input Section */
.input-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #555;
    font-size: 1.1rem;
}

.input-wrapper {
    display: flex;
    gap: 15px;
    align-items: center;
}

#passcodeInput, #mobileInput {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    outline: none;
}

#mobileInput:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#passcodeInput {
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

/* Buttons */
.btn {
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    min-width: 140px;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-call {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 10px 20px;
    font-size: 0.9rem;
    min-width: auto;
}

.btn-call:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.4);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 10px 20px;
    font-size: 0.9rem;
    min-width: auto;
}

.btn-whatsapp:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.4);
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Error */
.error {
    background: #ffebee;
    color: #c62828;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #c62828;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.error i {
    font-size: 1.5rem;
}

/* Contacts Section */
.contacts-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    margin-bottom: 30px;
}

.contacts-section h2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    margin: 0;
    font-size: 1.5rem;
}

.contacts-list {
    padding: 20px;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item:hover {
    background-color: #f8f9fa;
}

.contact-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.contact-info {
    flex: 1;
}

.contact-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.contact-mobile {
    color: #666;
    font-size: 1rem;
}

/* No Contacts */
.no-contacts {
    text-align: center;
    padding: 60px 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    color: #666;
}

.no-contacts i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 20px;
}

.no-contacts h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .input-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .contact-info {
        width: 100%;
    }

    .contact-actions {
        width: 100%;
        justify-content: space-between;
    }

    .contact-actions .btn {
        flex: 1;
        text-align: center;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }

    .input-section {
        padding: 20px;
    }

    .contacts-section h2 {
        padding: 15px 20px;
        font-size: 1.3rem;
    }

    .contacts-list {
        padding: 15px;
    }

    .contact-item {
        padding: 15px;
    }
}
