.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    position: relative;
    background: white;
    margin: 40px auto;
    padding: 0;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.close-btn:hover {
    background: #f1f1f1;
    color: #333;
}

.branch-list {
    margin: 0;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.branch-item {
    padding: 15px;
    margin: 0 0 10px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.branch-item:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.branch-item h3 {
    margin: 0 0 5px;
    color: #2c3e50;
}

.branch-item p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

#branchSetupForm {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    box-sizing: border-box;
    background: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
    background: #fff;
}

.form-group input::placeholder {
    color: #adb5bd;
}

.floor-setup-container {
    margin: 20px 0;
}

.floor-setup {
    background: #f8f9fa;
    margin: 0 0 15px;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s;
}

.floor-setup:hover {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.floor-setup h3 {
    margin: 0 0 15px;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.room-range {
    display: flex;
    align-items: center;
    gap: 15px;
}

.room-range input {
    width: 100px;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
}

.room-range span {
    color: #6c757d;
    font-weight: 500;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.error-message:before {
    content: "⚠";
    font-size: 1rem;
}

.btn-primary {
    background: #007bff;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    width: 100%;
    justify-content: center;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary svg {
    transition: all 0.2s;
}

.btn-primary:hover svg {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .modal-content {
        margin: 20px auto;
        width: 95%;
    }

    .room-range {
        flex-direction: column;
        align-items: stretch;
    }

    .room-range input {
        width: 100%;
    }
} 